Class: Phase::Deploy::Deployment
- Inherits:
-
Object
- Object
- Phase::Deploy::Deployment
- Defined in:
- lib/phase/kit/deploy/deployment.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#build ⇒ Object
readonly
Returns the value of attribute build.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(environment, options = {}) ⇒ Deployment
constructor
A new instance of Deployment.
Constructor Details
#initialize(environment, options = {}) ⇒ Deployment
Returns a new instance of Deployment.
7 8 9 10 |
# File 'lib/phase/kit/deploy/deployment.rb', line 7 def initialize(environment, = {}) @environment = environment @build = Build.new([:version_tag]) end |
Instance Attribute Details
#build ⇒ Object (readonly)
Returns the value of attribute build.
5 6 7 |
# File 'lib/phase/kit/deploy/deployment.rb', line 5 def build @build end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
5 6 7 |
# File 'lib/phase/kit/deploy/deployment.rb', line 5 def environment @environment end |
Instance Method Details
#execute! ⇒ Object
12 13 14 15 |
# File 'lib/phase/kit/deploy/deployment.rb', line 12 def execute! @build.execute deploy_image end |