Class: Vtasks::Docker::Image::Tag
- Inherits:
-
Object
- Object
- Vtasks::Docker::Image::Tag
- Includes:
- Utils::Output
- Defined in:
- lib/vtasks/docker/image/tag.rb
Overview
Docker Tag module
Instance Method Summary collapse
-
#initialize(image, oldtag, newtag) ⇒ Tag
constructor
A new instance of Tag.
Methods included from Utils::Output
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 |