Class: Forger::CLI

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

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch

Instance Method Details

#ami(name) ⇒ Object



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

def ami(name)
  Ami.new(options.merge(name: name)).run
end

#compileObject



48
49
50
# File 'lib/forger/cli.rb', line 48

def compile
  Script::Compile.new(options).compile_all
end

#completion(*params) ⇒ Object



67
68
69
# File 'lib/forger/cli.rb', line 67

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

#completion_scriptObject



73
74
75
# File 'lib/forger/cli.rb', line 73

def completion_script
  Completer::Script.generate
end

#create(name) ⇒ Object



34
35
36
# File 'lib/forger/cli.rb', line 34

def create(name)
  Create.new(options.merge(name: name)).run
end

#destroy(instance_id) ⇒ Object



61
62
63
# File 'lib/forger/cli.rb', line 61

def destroy(instance_id)
  Destroy.new(options).run(instance_id)
end

#uploadObject



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

def upload
  Script::Upload.new(options).upload
end

#versionObject



78
79
80
# File 'lib/forger/cli.rb', line 78

def version
  puts VERSION
end