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