Class: ContainerShip::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/container_ship/cli.rb

Instance Method Summary collapse

Instance Method Details

#exec(cluster_name, service_name, environment, build_number) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/container_ship/cli.rb', line 22

def exec(cluster_name, service_name, environment, build_number)
  timeout = options['timeout']
  no_wait = options['no_wait']
  Command::ExecCommand.new.run(
    cluster_name, service_name, environment, build_number,
    timeout: timeout,
    no_wait: no_wait
  )
end

#init(cluster_name) ⇒ Object



9
10
11
# File 'lib/container_ship/cli.rb', line 9

def init(cluster_name)
  Command::InitCommand.new.run(cluster_name)
end

#ship(cluster_name, service_name, environment, build_number) ⇒ Object



14
15
16
# File 'lib/container_ship/cli.rb', line 14

def ship(cluster_name, service_name, environment, build_number)
  Command::ShipCommand.new.run(cluster_name, service_name, environment, build_number)
end

#versionObject



33
34
35
# File 'lib/container_ship/cli.rb', line 33

def version
  say ContainerShip::VERSION
end