Class: Foodie::Generators::Recipe
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Foodie::Generators::Recipe
- Includes:
- Thor::Actions
- Defined in:
- lib/foodie/generators/recipe.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
12 13 14 |
# File 'lib/foodie/generators/recipe.rb', line 12 def self.source_root File.dirname(__FILE__) + "/recipe" end |
Instance Method Details
#copy_recipe ⇒ Object
9 10 11 |
# File 'lib/foodie/generators/recipe.rb', line 9 def copy_recipe template("recipe.txt", "#{group}/#{name}.txt") end |
#create_group ⇒ Object
6 7 8 |
# File 'lib/foodie/generators/recipe.rb', line 6 def create_group empty_directory(group) end |