lib/dtc_rake/util.rb in dtc_rake-1.0.0.pre.beta.1 vs lib/dtc_rake/util.rb in dtc_rake-1.0.0.pre.beta.2

- old
+ new

@@ -9,12 +9,13 @@ module DtcRake include DtcRake::UI def mv_to_output_dir(src_dir, src_file) output_dir = DtcRake::Config.instance.output_dir + output_dir_name = File.basename(output_dir) # get just the last path element (e.g. "target") FileUtils.mkpath output_dir - src_file_path = File.join(src_dir, output_dir, src_file) - dest_file = File.expand_path(File.join(".", output_dir, src_file)) + src_file_path = File.join(src_dir, output_dir_name, src_file) + dest_file = File.join(output_dir, src_file) FileUtils.mv src_file_path, dest_file success "#{dest_file} created" end module_function :mv_to_output_dir