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



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

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

#completion_scriptObject



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

def completion_script
  Completer::Script.generate
end

#delete(project_name = nil) ⇒ Object



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

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

#deploy(project_name = nil) ⇒ Object



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

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

#start(project_name = nil) ⇒ Object



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

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

#versionObject



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

def version
  puts VERSION
end