Class: Takelage::DockerImageTagLatest
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takelage::DockerImageTagLatest
- Includes:
- ConfigModule, DockerCheckRunning, DockerImageTagLatestLocal, DockerImageTagLatestRemote, DockerImageTagListLocal, DockerImageTagListRemote, LoggingModule, SystemModule
- Defined in:
- lib/takelage/docker/image/tag/latest/cli.rb
Overview
takelage docker image tag latest
Instance Method Summary collapse
-
#initialize(args = [], local_options = {}, configuration = {}) ⇒ DockerImageTagLatest
constructor
Initialize takelage docker image tag latest.
-
#local ⇒ Object
Print latest local docker image tag.
-
#remote ⇒ Object
Print latest remote docker image tag.
Methods included from DockerImageTagLatestRemote
#docker_image_tag_latest_remote
Methods included from DockerImageTagLatestLocal
#docker_image_tag_latest_local
Methods included from DockerImageTagListRemote
Methods included from DockerImageTagListLocal
Methods included from DockerCheckRunning
Methods included from ConfigModule
#config, #configured?, #initialize_config
Methods included from SystemModule
#hash_to_yaml, #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 = {}) ⇒ DockerImageTagLatest
Initialize takelage docker image tag latest
16 17 18 19 20 21 22 23 |
# File 'lib/takelage/docker/image/tag/latest/cli.rb', line 16 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
#local ⇒ Object
Print latest local docker image tag.
34 35 36 37 38 39 |
# File 'lib/takelage/docker/image/tag/latest/cli.rb', line 34 def local tag_latest_local = docker_image_tag_latest_local exit false if tag_latest_local == false say tag_latest_local true end |
#remote ⇒ Object
Print latest remote docker image tag.
50 51 52 53 54 55 |
# File 'lib/takelage/docker/image/tag/latest/cli.rb', line 50 def remote tag_latest_remote = docker_image_tag_latest_remote exit false if tag_latest_remote == false say tag_latest_remote true end |