lib/kubes/docker/strategy/image_name.rb
# Store this in a file because this name gets reference in other tasks later
# and we want the image name to stay the same when the commands are run separate
# in different processes.  So we store the state in a file.
# Only when a new docker build command gets run will the image name state be updated.
Store this in a file because this name gets reference in other tasks later
and we want the image name to stay the same when the commands are run separate
in different processes.  So we store the state in a file.
Only when a new docker build command gets run will the image name state be updated.
Store this in a file because this name gets reference in other tasks later and we want the image name to stay the same when the commands are run separate in different processes . So we store the state in a file . Only when a new docker build command gets run will the image name state be updated .
def store_image_name
      FileUtils.mkdir_p(File.dirname(image_state_path))
      text = JSON.pretty_generate(image: @@image_name)
      IO.write(image_state_path, text)
    end
def store_image_name FileUtils . mkdir_p ( File . dirname ( image_state_path ) ) text = JSON . pretty_generate ( image : @@image_name ) IO . write ( image_state_path , text ) end
Store this in a file because this name gets reference in other tasks later
and we want the image name to stay the same when the commands are run separate
in different processes.
Store this in a file because this name gets reference in other tasks later and we want the image name to stay the same when the commands are run separate in different processes .