Class: Takeltau::ShipProject
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takeltau::ShipProject
- Includes:
- ConfigModule, DockerCheckDaemon, DockerContainerLib, LoggingModule, ShipContainerCheckExisting, ShipContainerLib, ShipContainerStop, ShipInfoLib, ShipPortsLib, ShipProjectCreate, ShipProjectList, ShipProjectRestart, ShipProjectStart, SystemModule
- Defined in:
- lib/takeltau/ship/project/cli.rb
Overview
tau docker container
Instance Method Summary collapse
- #create(project = 'default') ⇒ Object
- #list ⇒ Object
-
#restart(project = 'default') ⇒ Object
ship restart: #restart.
- #start(project = 'default') ⇒ Object
- #stop ⇒ Object
- #update(project = 'default') ⇒ Object
Methods included from ShipProjectStart
Methods included from ShipProjectRestart
Methods included from ShipProjectList
Methods included from ShipProjectCreate
Methods included from ShipContainerStop
Methods included from ShipContainerCheckExisting
#ship_container_check_existing
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
Instance Method Details
#create(project = 'default') ⇒ Object
30 31 32 |
# File 'lib/takeltau/ship/project/cli.rb', line 30 def create(project = 'default') exit ship_project_create project end |
#list ⇒ Object
41 42 43 |
# File 'lib/takeltau/ship/project/cli.rb', line 41 def list ship_project_list end |
#restart(project = 'default') ⇒ Object
ship restart: #restart
54 55 56 |
# File 'lib/takeltau/ship/project/cli.rb', line 54 def restart(project = 'default') exit ship_project_restart project end |
#start(project = 'default') ⇒ Object
65 66 67 |
# File 'lib/takeltau/ship/project/cli.rb', line 65 def start(project = 'default') exit ship_project_start project end |
#stop ⇒ Object
76 77 78 |
# File 'lib/takeltau/ship/project/cli.rb', line 76 def stop say ship_container_stop end |
#update(project = 'default') ⇒ Object
89 90 91 |
# File 'lib/takeltau/ship/project/cli.rb', line 89 def update(project = 'default') exit ship_project_create project, 'Updated' end |