Class: Vtasks::Docker::Image::Tag

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

Overview

Docker Tag module

Instance Method Summary collapse

Methods included from Utils::Output

#debug, #error, #info, #warn

Constructor Details

#initialize(image, oldtag, newtag) ⇒ Tag

Returns a new instance of Tag.



10
11
12
13
# File 'lib/vtasks/docker/image/tag.rb', line 10

def initialize(image, oldtag, newtag)
  info "Tagging #{image}:#{newtag}"
  system "docker image tag #{image}:#{oldtag} #{image}:#{newtag}"
end