lib/ladder_drive/cli.rb in ladder_drive-0.6.0 vs lib/ladder_drive/cli.rb in ladder_drive-0.6.1

- old
+ new

@@ -31,11 +31,11 @@ desc "create", "Create a new project" def create(name) if File.exist? name puts "ERROR: #{name} already exists." - exit -1 + exit(-1) end # copy from template file root_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "..")) template_path = File.join(root_dir, "template", "ladder_drive") @@ -56,10 +56,10 @@ root_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "..")) plugins_path = File.join(root_dir, "plugins") path = File.join(plugins_path, "#{name}_plugin.rb") if File.exist? path mkdir_p "plugins" - cp path, "plugins/#{name}_plugins.rb" + cp path, "plugins/#{name}_plugin.rb" end end end end