Class: Vtasks::Docker::Image::Push
- Inherits:
-
Object
- Object
- Vtasks::Docker::Image::Push
- Includes:
- Utils::Output
- Defined in:
- lib/vtasks/docker/image/push.rb
Overview
Docker Push class
Instance Method Summary collapse
-
#initialize(image, tag) ⇒ Push
constructor
A new instance of Push.
Methods included from Utils::Output
Constructor Details
#initialize(image, tag) ⇒ Push
Returns a new instance of Push.
10 11 12 13 |
# File 'lib/vtasks/docker/image/push.rb', line 10 def initialize(image, tag) info "Pushing #{image}:#{tag}" system "docker image push #{image}:#{tag}" end |