Class: RubyDeployer::DeploymentDSL
- Inherits:
-
Object
- Object
- RubyDeployer::DeploymentDSL
- Defined in:
- lib/ruby_deployer/deployment_dsl.rb
Instance Attribute Summary collapse
-
#deployments ⇒ Object
readonly
Returns the value of attribute deployments.
Instance Method Summary collapse
- #execute(&block) ⇒ Object
-
#initialize ⇒ DeploymentDSL
constructor
A new instance of DeploymentDSL.
- #push(options) ⇒ Object
Constructor Details
#initialize ⇒ DeploymentDSL
Returns a new instance of DeploymentDSL.
5 6 7 |
# File 'lib/ruby_deployer/deployment_dsl.rb', line 5 def initialize @deployments = {} end |
Instance Attribute Details
#deployments ⇒ Object (readonly)
Returns the value of attribute deployments.
3 4 5 |
# File 'lib/ruby_deployer/deployment_dsl.rb', line 3 def deployments @deployments end |
Instance Method Details
#execute(&block) ⇒ Object
15 16 17 |
# File 'lib/ruby_deployer/deployment_dsl.rb', line 15 def execute(&block) instance_eval &block end |
#push(options) ⇒ Object
9 10 11 12 13 |
# File 'lib/ruby_deployer/deployment_dsl.rb', line 9 def push() .each do |artifact, destinations| @deployments[artifact] = destinations end end |