Class: Engineyard::Recipes::Generators::GemGenerator
- Inherits:
-
BaseGenerator
- Object
- Thor::Group
- BaseGenerator
- Engineyard::Recipes::Generators::GemGenerator
- Includes:
- Thor::Actions
- Defined in:
- lib/engineyard-recipes/generators/gem_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
13 14 15 |
# File 'lib/engineyard-recipes/generators/gem_generator.rb', line 13 def self.source_root File.join(File.dirname(__FILE__), "gem_generator", "templates") end |
Instance Method Details
#install_gem ⇒ Object
17 18 19 |
# File 'lib/engineyard-recipes/generators/gem_generator.rb', line 17 def install_gem directory "gem", repo_name end |
#install_metadata ⇒ Object
21 22 23 |
# File 'lib/engineyard-recipes/generators/gem_generator.rb', line 21 def directory "metadata", repo_name end |
#install_recipe ⇒ Object
25 26 27 28 29 |
# File 'lib/engineyard-recipes/generators/gem_generator.rb', line 25 def install_recipe if recipe_type == "recipe" directory "recipe", repo_name end end |