Sha256: feb1ee7ec6b8ab8f1a1c7fafcee8e319eed4159e0534229e18826d2eb4aea655

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

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

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

      def create_group
        empty_directory(group)
      end

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

      def self.source_root
        File.dirname(__FILE__) + "/recipe"
      end


    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foodie-example-0.2.0 lib/foodie/generators/recipe.rb