Class: RubyDeployer::ProvisionDSL
- Inherits:
-
Object
- Object
- RubyDeployer::ProvisionDSL
- Defined in:
- lib/ruby_deployer/provision_dsl.rb
Instance Attribute Summary collapse
-
#instances ⇒ Object
readonly
Returns the value of attribute instances.
Instance Method Summary collapse
- #execute(&block) ⇒ Object
-
#initialize(options) ⇒ ProvisionDSL
constructor
A new instance of ProvisionDSL.
- #instance(name, options = {}, &block) ⇒ Object
Constructor Details
#initialize(options) ⇒ ProvisionDSL
Returns a new instance of ProvisionDSL.
7 8 9 |
# File 'lib/ruby_deployer/provision_dsl.rb', line 7 def initialize @instances = [] end |
Instance Attribute Details
#instances ⇒ Object (readonly)
Returns the value of attribute instances.
5 6 7 |
# File 'lib/ruby_deployer/provision_dsl.rb', line 5 def instances @instances end |
Instance Method Details
#execute(&block) ⇒ Object
15 16 17 |
# File 'lib/ruby_deployer/provision_dsl.rb', line 15 def execute(&block) instance_eval &block end |