Sha256: e21c7a8aad4c6ed083fc703c87956488fb8cd774759abac8b12b38b082c4ace5

Contents?: true

Size: 1.19 KB

Versions: 7

Compression:

Stored size: 1.19 KB

Contents

module Takelage

  # takelage docker image
  class DockerImage < SubCommandBase

    include LoggingModule
    include SystemModule
    include ConfigModule
    include DockerCheckModule
    include DockerImageTagListModule
    include DockerImageTagLatestModule
    include DockerImageModule

    # Initialize takelage docker image
    def initialize(args=[], local_options={}, configuration={})

      # initialize thor parent class
      super args, local_options, configuration

      @docker_repo = config.active['docker_repo']
      @docker_image = config.active['docker_image']
      @docker_tagsurl = config.active['docker_tagsurl']
    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

7 entries across 7 versions & 1 rubygems

Version Path
takelage-0.9.0 lib/takelage/docker/image/cli.rb
takelage-0.8.1 lib/takelage/docker/image/cli.rb
takelage-0.8.0 lib/takelage/docker/image/cli.rb
takelage-0.7.2 lib/takelage/docker/image/cli.rb
takelage-0.7.1 lib/takelage/docker/image/cli.rb
takelage-0.7.0 lib/takelage/docker/image/cli.rb
takelage-0.6.0 lib/takelage/docker/image/cli.rb