class RecipeBox::CLI
Public Instance Methods
insert(name)
click to toggle source
# File lib/recipe_box/cli.rb, line 4 def insert(name) CreateRecipe.start([name]) end
new(name)
click to toggle source
# File lib/recipe_box/cli.rb, line 16 def new(name) CreateRecipeBox.start([name]) end
remove(name)
click to toggle source
# File lib/recipe_box/cli.rb, line 9 def remove(name) if yes?("Warning: this will remove the directory #{name} and all its contents. Proceed?") RemoveRecipe.start([name]) end end