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



44
45
46
# File 'lib/codebuild/cli.rb', line 44

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

#completion_scriptObject



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

def completion_script
  Completer::Script.generate
end

#delete(project_name = nil) ⇒ Object



29
30
31
# File 'lib/codebuild/cli.rb', line 29

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

#deploy(project_name = nil) ⇒ Object



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

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

#start(project_name = nil) ⇒ Object



38
39
40
# File 'lib/codebuild/cli.rb', line 38

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

#versionObject



55
56
57
# File 'lib/codebuild/cli.rb', line 55

def version
  puts VERSION
end