Class: Engineyard::Recipes::Generators::DefinitionGenerator

Inherits:
BaseGenerator
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/engineyard-recipes/generators/definition_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



11
12
13
# File 'lib/engineyard-recipes/generators/definition_generator.rb', line 11

def self.source_root
  File.join(File.dirname(__FILE__), "definition_generator", "templates")
end

Instance Method Details

#install_cookbooksObject



15
16
17
18
19
# File 'lib/engineyard-recipes/generators/definition_generator.rb', line 15

def install_cookbooks
  directory "cookbooks", cookbooks_destination
rescue CookbooksNotFound
  directory "cookbooks/%recipe_name%", "."
end