Class: Minos::Artifact
- Inherits:
-
Object
- Object
- Minos::Artifact
- Includes:
- Dry::Monads::List::Mixin, Dry::Monads::Result::Mixin, Dry::Monads::Task::Mixin, Dry::Monads::Try::Mixin, Thor::Shell
- Defined in:
- lib/minos/artifact.rb
Instance Attribute Summary collapse
-
#artifact ⇒ Object
readonly
Returns the value of attribute artifact.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(artifact, options: {}) ⇒ Artifact
constructor
A new instance of Artifact.
- #name ⇒ Object
- #push {|List::Task[ *tags.map.each_with_index { |tag, i| docker_push(i, tag) } ] .traverse .to_result| ... } ⇒ Object
Constructor Details
#initialize(artifact, options: {}) ⇒ Artifact
Returns a new instance of Artifact.
18 19 20 21 |
# File 'lib/minos/artifact.rb', line 18 def initialize(artifact, options: {}) @artifact = artifact @options = end |
Instance Attribute Details
#artifact ⇒ Object (readonly)
Returns the value of attribute artifact.
16 17 18 |
# File 'lib/minos/artifact.rb', line 16 def artifact @artifact end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
16 17 18 |
# File 'lib/minos/artifact.rb', line 16 def @options end |
Instance Method Details
#build ⇒ Object
27 28 29 |
# File 'lib/minos/artifact.rb', line 27 def build docker_build.to_result end |
#name ⇒ Object
23 24 25 |
# File 'lib/minos/artifact.rb', line 23 def name artifact['name'] end |
#push {|List::Task[ *tags.map.each_with_index { |tag, i| docker_push(i, tag) } ] .traverse .to_result| ... } ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/minos/artifact.rb', line 31 def push yield List::Task[ *.map.each_with_index { |tag, i| docker_push(i, tag) } ] .traverse .to_result end |