Sha256: 8742a81a5e930ac5e617f1c35d4d79d74525bbe6417fd8120b37054b6c084d7d

Contents?: true

Size: 1.37 KB

Versions: 24

Compression:

Stored size: 1.37 KB

Contents

# frozen_string_literal: true

module Takelage
  # takelage docker image tag check
  class DockerImageTagCheck < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include DockerCheckRunning
    include DockerImageTagListRemote
    include DockerImageTagCheckLocal
    include DockerImageTagCheckRemote

    # Initialize takelage docker image tag check
    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 check local
    #
    desc 'local [TAG]', 'Check if local docker image [TAG] exists'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if local docker image tag exists
    LONGDESC
    # Check if local docker image tag exists.
    def local(tag)
      exit docker_image_tag_check_local tag
    end

    #
    # docker image tag check remote
    #
    desc 'remote [TAG]', 'Check if remote docker image [TAG] exists'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if remote docker image tag exists
    LONGDESC
    # Check if remote docker image tag exists.
    def remote(tag)
      exit docker_image_tag_check_remote tag
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
takelage-0.22.2 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.22.1 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.22.0 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.21.1 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.21.0 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.20.2 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.20.1 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.20.0 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.19.2 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.19.1 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.19.0 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.18.1 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.18.0 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.17.1 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.17.0 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.16.0 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.15.1 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.15.0 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.14.5 lib/takelage/docker/image/tag/check/cli.rb
takelage-0.14.4 lib/takelage/docker/image/tag/check/cli.rb