Sha256: b41f64a9ebb69d4832c54039175dda1bc13cd3a9ac7e58a3712ea0466e3aa134

Contents?: true

Size: 342 Bytes

Versions: 1

Compression:

Stored size: 342 Bytes

Contents

require 'thor/group'
module Foodie
  module Generators
    class Recipe < Thor::Group
      include Thor::Actions

    def create_group
  		empty_directory(group)
		end

		def copy_recipe
  		template("recipe.txt", "#{group}/#{name}.txt")
		end

      argument :group, :type => :string
      argument :name, :type => :string
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foodish-0.0.1 lib/foodie/generators/recipe.rb