Class: Takeltau::ShipProject

Overview

tau docker container

Instance Method Summary collapse

Methods included from ShipProjectStart

#ship_project_start

Methods included from ShipProjectRestart

#ship_project_restart

Methods included from ShipProjectList

#ship_project_list

Methods included from ShipProjectCreate

#ship_project_create

Methods included from ShipContainerStop

#ship_container_stop

Methods included from ShipContainerCheckExisting

#ship_container_check_existing

Methods included from DockerCheckDaemon

#docker_check_daemon

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

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

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

#listObject



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

#stopObject



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