lib/rails_wizard/command.rb in rails_wizard-0.1.0 vs lib/rails_wizard/command.rb in rails_wizard-0.1.2
- old
+ new
@@ -13,9 +13,10 @@
@recipes = []
while recipe = ask("#{print_recipes}#{bold}Which recipe would you like to add? #{clear}#{yellow}(blank to finish)#{clear}")
if recipe == ''
run_template(name, @recipes)
+ break
elsif RailsWizard::Recipes.list.include?(recipe)
@recipes << recipe
puts
puts "> #{green}Added '#{recipe}' to template.#{clear}"
else