Sha256: c9465cf1a0e18718b42c4f2648cece1c4b9cca9117253e434378b2119fc6bd07
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
require 'thor' require_relative '../foodie2/food' require_relative '../foodie2/generators/recipe' module Foodie2 class CLI < Thor desc "portray ITEM", "Determines if a piece of food is gross or delicious" def portray(name) puts Foodie2::Food.portray(name) end desc "pluralize", "Pluralizes a word" method_option :word, :aliases => "-w" def pluralize puts Foodie2::Food.pluralize(options[:word]) end desc "recipe", "Generates a recipe scaffold" def recipe(group, name) Foodie2::Generators::Recipe.start([group, name]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foodie2-0.0.1 | lib/foodie2/cli.rb |