Class: Cody::CLI

Inherits:
Command show all
Defined in:
lib/cody/cli/base.rb,
lib/cody/cli.rb,
lib/cody/cli/help.rb,
lib/cody/cli/init.rb,
lib/cody/cli/list.rb,
lib/cody/cli/logs.rb,
lib/cody/cli/stop.rb,
lib/cody/cli/badge.rb,
lib/cody/cli/start.rb,
lib/cody/cli/delete.rb,
lib/cody/cli/deploy.rb,
lib/cody/cli/status.rb,
lib/cody/cli/sequence.rb

Overview

Base only for Stop and Start currently.

Defined Under Namespace

Modules: Help Classes: Badge, Base, Delete, Deploy, Init, List, Logs, Sequence, Start, Status, Stop

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#badge(project_name = nil) ⇒ Object



85
86
87
# File 'lib/cody/cli.rb', line 85

def badge(project_name=nil)
  Badge.new(options.merge(project_name: project_name)).run
end

#delete(project_name = nil) ⇒ Object



32
33
34
# File 'lib/cody/cli.rb', line 32

def delete(project_name=nil)
  Delete.new(options.merge(project_name: project_name)).run
end

#deploy(project_name = nil) ⇒ Object



24
25
26
# File 'lib/cody/cli.rb', line 24

def deploy(project_name=nil)
  Deploy.new(options.merge(project_name: project_name)).run
end

#listObject



68
69
70
# File 'lib/cody/cli.rb', line 68

def list
  List.new(options).run
end

#logs(project_name = nil) ⇒ Object



77
78
79
# File 'lib/cody/cli.rb', line 77

def logs(project_name=nil)
  Logs.new(options.merge(project_name: project_name)).run
end

#start(project_name = nil) ⇒ Object



42
43
44
# File 'lib/cody/cli.rb', line 42

def start(project_name=nil)
  Start.new(options.merge(project_name: project_name)).run
end

#status(project_name = nil) ⇒ Object



50
51
52
# File 'lib/cody/cli.rb', line 50

def status(project_name=nil)
  Status.new(options.merge(project_name: project_name)).run
end

#stop(project_name = nil) ⇒ Object



58
59
60
# File 'lib/cody/cli.rb', line 58

def stop(project_name=nil)
  Stop.new(options.merge(project_name: project_name)).run
end

#versionObject



90
91
92
# File 'lib/cody/cli.rb', line 90

def version
  puts VERSION
end