Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fd0b873870
25 lines (20 sloc) 0.569 kb
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
Jump to Line
Something went wrong with that request. Please try again.