Class: Codebuild::CLI

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

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, website

Instance Method Details

#completion(*params) ⇒ Object



47
48
49
# File 'lib/codebuild/cli.rb', line 47

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

#completion_scriptObject



53
54
55
# File 'lib/codebuild/cli.rb', line 53

def completion_script
  Completer::Script.generate
end

#delete(project_name = nil) ⇒ Object



31
32
33
# File 'lib/codebuild/cli.rb', line 31

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

#deploy(project_name = nil) ⇒ Object



22
23
24
25
# File 'lib/codebuild/cli.rb', line 22

def deploy(project_name=nil)
  puts "[DEPRECATION] This gem has been renamed to cody and will no longer be supported. Please switch to cody as soon as possible."
  Deploy.new(options.merge(project_name: project_name)).run
end

#start(project_name = nil) ⇒ Object



41
42
43
# File 'lib/codebuild/cli.rb', line 41

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

#versionObject



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

def version
  puts VERSION
end