lib/itrigga/cap_deploy.rb in itrigga-cap_deploy-0.0.3 vs lib/itrigga/cap_deploy.rb in itrigga-cap_deploy-0.0.4

- old
+ new

@@ -1,2 +1,9 @@ files = Dir.glob(File.join(File.dirname(__FILE__), 'cap_deploy/**/*') ) -files.each{|f| require f } + +configuration = Capistrano::Configuration.respond_to?(:instance) ? + Capistrano::Configuration.instance(:must_exist) : + Capistrano.configuration(:must_exist) + +configuration.load do + files.each{|f| require f } +end \ No newline at end of file