Sha256: 3497d12b4e285c9f078cecdd4bb455fb5ccf0af7c590c56ac5b51a9a384bd9cf
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
module Bently class CLI < Thor include Thor::Actions desc 'list', 'list recipes' def list Recipe.list.each {|f| puts f } end desc 'read [RECIPE]', 'display a recipe' def read recipe_name bake recipe_name, true end desc 'bake [RECIPE]', 'execute a recipe' def bake(recipe_name, read_only=false) if Recipe.list.include?(recipe_name) recipe = Recipe.from_name(recipe_name).new(:read_only => read_only) recipe.bake else puts "Recipe not found." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bently-0.0.0 | lib/bently/cli.rb |