Sha256: 609b1501f995d78559d836b86e4050c1240201ee2c8559477f8ac3125bdc108a
Contents?: true
Size: 684 Bytes
Versions: 6
Compression:
Stored size: 684 Bytes
Contents
# file: spec/fixtures/demo2.rb # from: https://github.com/radar/guides/blob/master/gem-development/foodie/lib/foodie/cli.rb require 'thor' require 'foodie' require 'foodie/generators/recipe' module Foodie class CLI < Thor desc "portray ITEM", "Determines if a piece of food is gross or delicious" def portray(name) puts Foodie::Food.portray(name) end desc "pluralize", "Pluralizes a word" method_option :word, :aliases => :word def pluralize puts Foodie::Food.pluralize(options[:word]) end desc "recipe", "Generates a recipe scaffold" def recipe(group, name) Foodie::Generators::Recipe.start([group, name]) end end end
Version data entries
6 entries across 6 versions & 1 rubygems