Class: Kubes::Docker
- Inherits:
-
Object
- Object
- Kubes::Docker
- Defined in:
- lib/kubes/docker.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(options, name) ⇒ Docker
constructor
A new instance of Docker.
- #run ⇒ Object
- #strategy_class ⇒ Object
Constructor Details
#initialize(options, name) ⇒ Docker
Returns a new instance of Docker.
3 4 5 6 |
# File 'lib/kubes/docker.rb', line 3 def initialize(, name) @options = @name = name end |
Instance Method Details
#run ⇒ Object
8 9 10 11 |
# File 'lib/kubes/docker.rb', line 8 def run strategy = strategy_class.new(@options, @name) # @name: docker or push strategy.run end |