Sha256: 1c27b7aa8e83b37772c47ef91c10c739397c79192f586a095b4fade48db14ee5

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

require 'thor'
require 'foodie'
require 'foodie/generators/recipe'

module Foodie
  class CLI < Thor
    desc "portray ITEM", "Determines ifa  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 => "-w"
    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
dakota-foodie-0.1.0 lib/foodie/cli.rb