Class: Kubes::Docker
- Inherits:
-
Object
- Object
- Kubes::Docker
- Includes:
- Strategy::ImageName
- 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
Methods included from Strategy::ImageName
#args, #custom, #default, #generate_name, #git_sha, #image_name, #image_state_path, #read_image_name, #repo, #reserve_image_name, #store_image_name
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 |