Sha256: b463dceccf619ae443319b4e4b9789c3828e21240d42595be2a0d51e09cf937c
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
require 'thor' require 'foodie/food' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foodie-0.0.1 | lib/foodie/cli.rb |