J
James Byrne
I cannot seem to get these commands to work as expected in Windows XP
pro SP2.
Given this
task :update do
FileUtils.cp_r File.join(File.dirname(__FILE__), 'views/xyz/'),
File.join(File.dirname(__FILE__), '../../../app/views')
end
I get this:
unknown file type: C:/path/to/source/views/xyz/
Given this:
task :remove do
FileUtils.rm_rf File.join(File.dirname(__FILE__),
'../../../app/views/xyz') rescue nil
end
I get no errors, but the directory is not removed either. Can someone
point out my error?
Regards,
pro SP2.
Given this
task :update do
FileUtils.cp_r File.join(File.dirname(__FILE__), 'views/xyz/'),
File.join(File.dirname(__FILE__), '../../../app/views')
end
I get this:
unknown file type: C:/path/to/source/views/xyz/
Given this:
task :remove do
FileUtils.rm_rf File.join(File.dirname(__FILE__),
'../../../app/views/xyz') rescue nil
end
I get no errors, but the directory is not removed either. Can someone
point out my error?
Regards,