Class: Cody::CLI

Inherits:
Command show all
Defined in:
lib/cody/cli.rb

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



82
83
84
# File 'lib/cody/cli.rb', line 82

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

#completion(*params) ⇒ Object



88
89
90
# File 'lib/cody/cli.rb', line 88

def completion(*params)
  Completer.new(CLI, *params).run
end

#completion_scriptObject



94
95
96
# File 'lib/cody/cli.rb', line 94

def completion_script
  Completer::Script.generate
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



65
66
67
# File 'lib/cody/cli.rb', line 65

def list
  List.new(options).run
end

#logs(project_name = nil) ⇒ Object



74
75
76
# File 'lib/cody/cli.rb', line 74

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



99
100
101
# File 'lib/cody/cli.rb', line 99

def version
  puts VERSION
end