bin/spinebox in spinebox-0.0.9 vs bin/spinebox in spinebox-0.0.10

- old
+ new

@@ -65,10 +65,11 @@ puts "Successfully created view '#{view.name}'".green exit(0) end # Scaffold Generator - on "scaffold MODEL [attributes]", "Scaffold a model, view and a controller", :if => proc { ['scaffold'].include?(ARGV.first)}, :type => :scaffold do + on "generate scaffold MODEL [attributes]", "Scaffold a model, view and a controller", :if => proc { ['generate', 'g'].include?(ARGV.first) and ['scaffold', 's'].include?(ARGV[1])}, :type => :scaffold do + ARGV.shift ARGV.shift name = ARGV.shift model = Spinebox::Generator::Model.new(name, ARGV) view = Spinebox::Generator::View.new(name) controller = Spinebox::Generator::Controller.new(name) \ No newline at end of file