Sha256: fe5c9cd4cacefa4905f7154cc8eaad7968bb0e4ddd87b824e5897685a4ffd6a1
Contents?: true
Size: 1.68 KB
Versions: 24
Compression:
Stored size: 1.68 KB
Contents
# frozen_string_literal: true module Takelage # takelage docker image tag latest class DockerImageTagLatest < SubCommandBase include LoggingModule include SystemModule include ConfigModule include DockerCheckRunning include DockerImageTagListLocal include DockerImageTagListRemote include DockerImageTagLatestLocal include DockerImageTagLatestRemote # Initialize takelage docker image tag latest def initialize(args = [], local_options = {}, configuration = {}) # initialize thor parent class super args, local_options, configuration @docker_user = config.active['docker_user'] @docker_repo = config.active['docker_repo'] @docker_registry = config.active['docker_registry'] end # # docker image tag latest local # desc 'local', 'Print latest local docker image tag' long_desc <<-LONGDESC.gsub("\n", "\x5") Print latest local docker image tag Print the tag of the local docker image with the highest tag. LONGDESC # Print latest local docker image tag. def local tag_latest_local = docker_image_tag_latest_local exit false if tag_latest_local == false say tag_latest_local true end # # docker image tag latest remote # desc 'remote', 'Print latest remote docker image tag' long_desc <<-LONGDESC.gsub("\n", "\x5") Print latest remote docker image tag Print the tag of the remote docker image with the highest tag. LONGDESC # Print latest remote docker image tag. def remote tag_latest_remote = docker_image_tag_latest_remote exit false if tag_latest_remote == false say tag_latest_remote true end end end
Version data entries
24 entries across 24 versions & 1 rubygems