Class: CapistranoHelpers

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano-helpers.rb

Class Method Summary collapse

Class Method Details

.with_configuration(&block) ⇒ Object

Execute the given block of code within the context of the capistrano configuration.



11
12
13
# File 'lib/capistrano-helpers.rb', line 11

def self.with_configuration(&block)
  Capistrano::Configuration.instance(:must_exist).load(&block)
end