Class: ChefCap::Capistrano

Inherits:
Object
  • Object
show all
Defined in:
lib/chef_cap.rb

Constant Summary collapse

RECIPES_PATH =
File.expand_path(File.join(File.dirname(__FILE__), "..", "recipes"))

Class Method Summary collapse

Class Method Details

.load_recipes(capistrano) ⇒ Object



8
9
10
# File 'lib/chef_cap.rb', line 8

def self.load_recipes(capistrano)
  Dir[File.join(RECIPES_PATH, "*.rb")].each { |recipe| capistrano.send(:load, recipe) }
end