lib/caramelize/cli/create_command.rb in caramelize-0.0.1 vs lib/caramelize/cli/create_command.rb in caramelize-0.0.2
- old
+ new
@@ -28,12 +28,22 @@
else
begin
# TODO create dummy config file
- rescue
+ puts "Created new configuration file: caramelize.rb"
+ #puts args[0]
require 'fileutils'
- FileUtils.rm_rf(args[0])
+
+ FileUtils.cp(File.dirname(__FILE__) +"/../caramel.rb", args[0])
+
+ #File.open('caremelize.rb',"w+") do |f|
+ # f << "query_data"
+ #end
+
+ rescue
+ #require 'fileutils'
+ #FileUtils.rm_rf(args[0])
raise
end
if commandparser.verbosity == :verbose
puts "The following files were created in the directory #{args[0]}:"
#puts paths.sort.join("\n")
\ No newline at end of file