Sha256: aeaed2440de3e1e0db56c661317e35afbb2459f5563b42f03d63a91ac8ed08b3

Contents?: true

Size: 681 Bytes

Versions: 13

Compression:

Stored size: 681 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

13 entries across 13 versions & 1 rubygems

Version Path
html2pdf-0.2.6 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.2.5 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.2.4 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.2.3 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.2.2 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.2.1 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.2.0 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.1.7 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.1.6 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.1.5 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.1.4 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.1.3 test/fixtures/samples/demo2_xxx.rb
html2pdf-0.1.2 test/fixtures/samples/demo2_xxx.rb