Class: Takelage::DockerImage

Inherits:
SubCommandBase show all
Includes:
ConfigModule, DockerCheckDaemon, DockerImageUpdate, LoggingModule, SystemModule
Defined in:
lib/takelage/docker/image/cli.rb

Overview

takelage docker image

Instance Method Summary collapse

Methods included from DockerImageUpdate

#docker_image_update

Methods included from DockerCheckDaemon

#docker_check_daemon

Methods included from ConfigModule

#config, #configured?, #initialize_config

Methods included from SystemModule

#hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_exit, #run_and_fork, #try

Methods included from LoggingModule

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Constructor Details

#initialize(args = [], local_options = {}, configuration = {}) ⇒ DockerImage

Initialize takelage docker image



13
14
15
16
17
18
19
20
# File 'lib/takelage/docker/image/cli.rb', line 13

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

Instance Method Details

#updateObject

Get latest remote docker container.



35
36
37
# File 'lib/takelage/docker/image/cli.rb', line 35

def update
  exit docker_image_update
end