Class: Takelage::DockerImage
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takelage::DockerImage
- Includes:
- ConfigModule, DockerCheckDaemon, DockerImageUpdate, LoggingModule, SystemModule
- Defined in:
- lib/takelage/docker/image/cli.rb
Overview
takelage docker image
Instance Method Summary collapse
-
#initialize(args = [], local_options = {}, configuration = {}) ⇒ DockerImage
constructor
Initialize takelage docker image.
-
#update ⇒ Object
Get latest remote docker container.
Methods included from DockerImageUpdate
Methods included from DockerCheckDaemon
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
Methods inherited from SubCommandBase
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 = [], = {}, configuration = {}) # initialize thor parent class super args, , configuration @docker_user = config.active['docker_user'] @docker_repo = config.active['docker_repo'] @docker_registry = config.active['docker_registry'] end |
Instance Method Details
#update ⇒ Object
Get latest remote docker container.
35 36 37 |
# File 'lib/takelage/docker/image/cli.rb', line 35 def update exit docker_image_update end |