Class: FoodieDavid::Generators::Recipe

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/foodie_david/generators/recipe.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



18
19
20
# File 'lib/foodie_david/generators/recipe.rb', line 18

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

Instance Method Details

#copy_recipeObject



14
15
16
# File 'lib/foodie_david/generators/recipe.rb', line 14

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

#create_groupObject



10
11
12
# File 'lib/foodie_david/generators/recipe.rb', line 10

def create_group
  empty_directory(group)
end