Sha256: b68176fd85a39a3cd92dd74c8b0d81bb53ab6d3e73c0c00c333e9c14625b78c7

Contents?: true

Size: 1.19 KB

Versions: 35

Compression:

Stored size: 1.19 KB

Contents

# frozen_string_literal: true

module Takeltau
  # tau docker image
  class DockerImage < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include DockerCheckDaemon
    include DockerImageUpdate

    # Initialize takelage docker image
    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_tag = config.active['docker_tag']
      @docker_registry = config.active['docker_registry']
    end

    desc 'tag [COMMAND]', 'Handle docker image tags'
    subcommand 'tag', DockerImageTag

    #
    # docker image update
    #
    desc 'update', 'Get latest remote docker container'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Get latest remote docker container
    This command will download the latest remote version of the takelage docker container.
    When you start the environment the latest locally available container will be used.
    LONGDESC
    # Get latest remote docker container.
    def update
      exit docker_image_update
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
takeltau-0.44.15 lib/takeltau/docker/image/cli.rb
takeltau-0.44.14 lib/takeltau/docker/image/cli.rb
takeltau-0.44.12 lib/takeltau/docker/image/cli.rb
takeltau-0.44.11 lib/takeltau/docker/image/cli.rb
takeltau-0.44.8 lib/takeltau/docker/image/cli.rb
takeltau-0.44.2 lib/takeltau/docker/image/cli.rb
takeltau-0.43.23 lib/takeltau/docker/image/cli.rb
takeltau-0.43.21 lib/takeltau/docker/image/cli.rb
takeltau-0.43.19 lib/takeltau/docker/image/cli.rb
takeltau-0.43.16 lib/takeltau/docker/image/cli.rb
takeltau-0.43.15 lib/takeltau/docker/image/cli.rb
takeltau-0.43.14 lib/takeltau/docker/image/cli.rb
takeltau-0.43.10 lib/takeltau/docker/image/cli.rb
takeltau-0.43.6 lib/takeltau/docker/image/cli.rb
takeltau-0.43.4 lib/takeltau/docker/image/cli.rb
takeltau-0.43.2 lib/takeltau/docker/image/cli.rb
takeltau-0.43.1 lib/takeltau/docker/image/cli.rb
takeltau-0.42.7 lib/takeltau/docker/image/cli.rb
takeltau-0.42.5 lib/takeltau/docker/image/cli.rb
takeltau-0.42.4 lib/takeltau/docker/image/cli.rb