Class: Engineyard::Recipes::Generators::DefinitionGenerator
- Inherits:
-
BaseGenerator
- Object
- Thor::Group
- BaseGenerator
- Engineyard::Recipes::Generators::DefinitionGenerator
- Includes:
- Thor::Actions
- Defined in:
- lib/engineyard-recipes/generators/definition_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
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_cookbooks ⇒ Object
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 |