Class: Shiprails::Ship

Inherits:
Thor
  • Object
show all
Defined in:
lib/shiprails/ship.rb,
lib/shiprails/ship/exec.rb,
lib/shiprails/ship/task.rb,
lib/shiprails/ship/scale.rb,
lib/shiprails/ship/setup.rb,
lib/shiprails/ship/config.rb,
lib/shiprails/ship/deploy.rb,
lib/shiprails/ship/install.rb

Defined Under Namespace

Classes: Config, Deploy, Exec, Install, Scale, Setup, Task

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configurationObject



54
55
56
# File 'lib/shiprails/ship.rb', line 54

def self.configuration
  YAML.load(File.read(".shiprails.yml")).deep_symbolize_keys rescue {}
end

Instance Method Details

#config(*command_args) ⇒ Object



20
21
22
23
# File 'lib/shiprails/ship.rb', line 20

def config(*command_args)
  require "shiprails/ship/config"
  Config.start command_args
end

#deploy(*command_args) ⇒ Object



26
27
28
29
# File 'lib/shiprails/ship.rb', line 26

def deploy(*command_args)
  require "shiprails/ship/deploy"
  Deploy.start command_args
end

#exec(*command_args) ⇒ Object



43
44
45
46
# File 'lib/shiprails/ship.rb', line 43

def exec(*command_args)
  require "shiprails/ship/exec"
  Exec.start command_args
end

#installObject



8
9
10
11
# File 'lib/shiprails/ship.rb', line 8

def install
  require "shiprails/ship/install"
  Install.start
end

#logsObject



32
33
34
# File 'lib/shiprails/ship.rb', line 32

def logs
  say "TODO: fetch logs", :blue
end

#scale(*args) ⇒ Object



49
50
51
52
# File 'lib/shiprails/ship.rb', line 49

def scale(*args)
  require "shiprails/ship/scale"
  Scale.start
end

#setupObject



14
15
16
17
# File 'lib/shiprails/ship.rb', line 14

def setup
  require "shiprails/ship/setup"
  Setup.start
end

#task(*command_args) ⇒ Object



37
38
39
40
# File 'lib/shiprails/ship.rb', line 37

def task(*command_args)
  require "shiprails/ship/task"
  Task.start command_args
end