Class: Docker::Dockerrun::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/docker/dockerrun/tag.rb

Instance Method Summary collapse

Constructor Details

#initialize(new_tag) ⇒ Tag

Returns a new instance of Tag.



7
8
9
# File 'lib/docker/dockerrun/tag.rb', line 7

def initialize(new_tag)
  @new_tag = new_tag
end

Instance Method Details

#callObject



11
12
13
14
15
16
# File 'lib/docker/dockerrun/tag.rb', line 11

def call
  open
  read
  overwrite_with_new_tag
  close
end