Class: Vtasks::Docker::Image::Push

Inherits:
Object
  • Object
show all
Includes:
Utils::Output
Defined in:
lib/vtasks/docker/image/push.rb

Overview

Docker Push class

Instance Method Summary collapse

Methods included from Utils::Output

#debug, #error, #info, #warn

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