Class: Engineyard::Recipes::Generators::GemGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



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_gemObject



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

def install_gem
  directory "gem", repo_name
end

#install_metadataObject



21
22
23
# File 'lib/engineyard-recipes/generators/gem_generator.rb', line 21

def 
  directory "metadata", repo_name
end

#install_recipeObject



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