Class: Takeltau::Ship
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takeltau::Ship
- Includes:
- ConfigModule, DockerCheckDaemon, LoggingModule, SystemModule
- Defined in:
- lib/takeltau/ship/cli.rb
Overview
tau ship
Instance Method Summary collapse
-
#board ⇒ Object
ship board: Takeltau::ShipContainer#login.
-
#clean ⇒ Object
ship clean: Takeltau::ShipProject#clean.
-
#command(*args) ⇒ Object
ship command: Takeltau::ShipContainer#command.
-
#docker(*args) ⇒ Object
ship docker: Takeltau::ShipContainer#podman.
-
#initialize(args = [], local_options = {}, configuration = {}) ⇒ Ship
constructor
A new instance of Ship.
-
#list ⇒ Object
ship list: Takeltau::ShipContainer#list.
-
#login ⇒ Object
ship login: Takeltau::ShipContainer#login.
-
#logs(*args) ⇒ Object
ship logs: Takeltau::ShipContainer#logs.
-
#ls ⇒ Object
ship list: Takeltau::ShipContainer#list.
-
#podman(*args) ⇒ Object
ship podman: Takeltau::ShipContainer#podman.
-
#restart(project = 'default') ⇒ Object
ship restart: Takeltau::ShipProject#restart.
-
#sail(project = 'default') ⇒ Object
ship sail: Takeltau::ShipProject#start.
-
#start(project = 'default') ⇒ Object
ship start: Takeltau::ShipProject#start.
-
#stop ⇒ Object
ship stop: Takeltau::ShipProject#stop.
-
#sudo(*args) ⇒ Object
ship sudo: Takeltau::ShipContainer#sudo.
-
#update ⇒ Object
tau update: Takeltau::ShipContainer#update.
- #version ⇒ Object
-
#wreck ⇒ Object
ship wreck: Takeltau::ShipProject#stop.
Methods included from DockerCheckDaemon
Methods included from ConfigModule
#config, #configured?, #initialize_config
Methods included from SystemModule
#command_available_else_error?, #hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_capture, #run_and_exit, #run_and_fork, #try, #write_file
Methods included from LoggingModule
Methods inherited from SubCommandBase
Constructor Details
#initialize(args = [], local_options = {}, configuration = {}) ⇒ Ship
Returns a new instance of Ship.
11 12 13 14 15 16 17 |
# File 'lib/takeltau/ship/cli.rb', line 11 def initialize(args = [], = {}, configuration = {}) # initialize thor parent class super log.debug 'Check docker dameon for ship subcommand' exit false unless docker_check_daemon 'cmd_ship_docker', 'cmd_ship_docker_check' end |
Instance Method Details
#board ⇒ Object
ship board: Takeltau::ShipContainer#login
44 45 46 |
# File 'lib/takeltau/ship/cli.rb', line 44 def board Takeltau::ShipContainer.new.login end |
#clean ⇒ Object
ship clean: Takeltau::ShipProject#clean
54 55 56 |
# File 'lib/takeltau/ship/cli.rb', line 54 def clean Takeltau::ShipContainer.new.clean end |
#command(*args) ⇒ Object
ship command: Takeltau::ShipContainer#command
64 65 66 |
# File 'lib/takeltau/ship/cli.rb', line 64 def command(*args) Takeltau::ShipContainer.new.command(*args) end |
#docker(*args) ⇒ Object
ship docker: Takeltau::ShipContainer#podman
74 75 76 |
# File 'lib/takeltau/ship/cli.rb', line 74 def docker(*args) Takeltau::ShipContainer.new.podman(*args) end |
#list ⇒ Object
ship list: Takeltau::ShipContainer#list
84 85 86 |
# File 'lib/takeltau/ship/cli.rb', line 84 def list Takeltau::ShipContainer.new.list end |
#login ⇒ Object
ship login: Takeltau::ShipContainer#login
94 95 96 |
# File 'lib/takeltau/ship/cli.rb', line 94 def login Takeltau::ShipContainer.new.login end |
#logs(*args) ⇒ Object
ship logs: Takeltau::ShipContainer#logs
104 105 106 |
# File 'lib/takeltau/ship/cli.rb', line 104 def logs(*args) Takeltau::ShipContainer.new.logs(*args) end |
#ls ⇒ Object
ship list: Takeltau::ShipContainer#list
114 115 116 |
# File 'lib/takeltau/ship/cli.rb', line 114 def ls Takeltau::ShipContainer.new.list end |
#podman(*args) ⇒ Object
ship podman: Takeltau::ShipContainer#podman
124 125 126 |
# File 'lib/takeltau/ship/cli.rb', line 124 def podman(*args) Takeltau::ShipContainer.new.podman(*args) end |
#restart(project = 'default') ⇒ Object
ship restart: Takeltau::ShipProject#restart
135 136 137 |
# File 'lib/takeltau/ship/cli.rb', line 135 def restart(project = 'default') Takeltau::ShipProject.new.restart project end |
#sail(project = 'default') ⇒ Object
ship sail: Takeltau::ShipProject#start
165 166 167 |
# File 'lib/takeltau/ship/cli.rb', line 165 def sail(project = 'default') Takeltau::ShipProject.new.start project end |
#start(project = 'default') ⇒ Object
ship start: Takeltau::ShipProject#start
155 156 157 |
# File 'lib/takeltau/ship/cli.rb', line 155 def start(project = 'default') Takeltau::ShipProject.new.start project end |
#stop ⇒ Object
ship stop: Takeltau::ShipProject#stop
175 176 177 |
# File 'lib/takeltau/ship/cli.rb', line 175 def stop Takeltau::ShipProject.new.stop end |
#sudo(*args) ⇒ Object
ship sudo: Takeltau::ShipContainer#sudo
145 146 147 |
# File 'lib/takeltau/ship/cli.rb', line 145 def sudo(*args) Takeltau::ShipContainer.new.sudo(*args) end |
#update ⇒ Object
tau update: Takeltau::ShipContainer#update
204 205 206 |
# File 'lib/takeltau/ship/cli.rb', line 204 def update Takeltau::ShipContainer.new.update end |
#version ⇒ Object
184 185 186 |
# File 'lib/takeltau/ship/cli.rb', line 184 def version Takeltau::ShipInfo.new.version end |
#wreck ⇒ Object
ship wreck: Takeltau::ShipProject#stop
194 195 196 |
# File 'lib/takeltau/ship/cli.rb', line 194 def wreck Takeltau::ShipProject.new.stop end |