Class: Deploy::Run
- Inherits:
-
Object
- Object
- Deploy::Run
- Defined in:
- lib/dew/models/deploy/run.rb
Instance Attribute Summary collapse
-
#deploy_type ⇒ Object
readonly
Returns the value of attribute deploy_type.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #deploy ⇒ Object
-
#initialize(deploy_type, environment, opts) ⇒ Run
constructor
A new instance of Run.
Constructor Details
#initialize(deploy_type, environment, opts) ⇒ Run
Returns a new instance of Run.
9 10 11 12 13 |
# File 'lib/dew/models/deploy/run.rb', line 9 def initialize deploy_type, environment, opts @deploy_type = deploy_type @environment = environment @opts = opts end |
Instance Attribute Details
#deploy_type ⇒ Object (readonly)
Returns the value of attribute deploy_type.
7 8 9 |
# File 'lib/dew/models/deploy/run.rb', line 7 def deploy_type @deploy_type end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
7 8 9 |
# File 'lib/dew/models/deploy/run.rb', line 7 def environment @environment end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
7 8 9 |
# File 'lib/dew/models/deploy/run.rb', line 7 def opts @opts end |
Instance Method Details
#deploy ⇒ Object
15 16 17 |
# File 'lib/dew/models/deploy/run.rb', line 15 def deploy Deploy.const_get(deploy_type.capitalize).new(@environment.servers, @opts).deploy end |