Class: Engineyard::Recipes::Generators::InitGenerator
- Inherits:
-
BaseGenerator
- Object
- Thor::Group
- BaseGenerator
- Engineyard::Recipes::Generators::InitGenerator
- Includes:
- Thor::Actions
- Defined in:
- lib/engineyard-recipes/generators/init_resin_chef_generator.rb,
lib/engineyard-recipes/generators/init_bundled_chef_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/engineyard-recipes/generators/init_resin_chef_generator.rb', line 10 def self.source_root File.join(File.dirname(__FILE__), "init_resin_chef_generator", "templates") end |
Instance Method Details
#gemfile ⇒ Object
14 15 16 17 18 19 |
# File 'lib/engineyard-recipes/generators/init_bundled_chef_generator.rb', line 14 def gemfile append_file "Gemfile", <<-GEMS gem "eycloud-helper-common", :group => :eycloud GEMS end |
#install_cookbooks ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/engineyard-recipes/generators/init_resin_chef_generator.rb', line 14 def install_cookbooks if on_deploy? directory "deploy" end unless File.exists?(File.join(destination_root, "#{cookbooks_destination}/main/recipes/default.rb")) directory "cookbooks", cookbooks_destination end end |