Class: Lono::Cfn

Inherits:
Command show all
Defined in:
lib/lono/cfn.rb,
lib/lono/cfn/base.rb,
lib/lono/cfn/diff.rb,
lib/lono/cfn/util.rb,
lib/lono/cfn/cancel.rb,
lib/lono/cfn/create.rb,
lib/lono/cfn/delete.rb,
lib/lono/cfn/deploy.rb,
lib/lono/cfn/status.rb,
lib/lono/cfn/suffix.rb,
lib/lono/cfn/update.rb,
lib/lono/cfn/current.rb,
lib/lono/cfn/preview.rb,
lib/lono/cfn/download.rb,
lib/lono/cfn/rollback.rb

Defined Under Namespace

Modules: Suffix, Util Classes: Base, Cancel, Create, Current, Delete, Deploy, Diff, Download, Preview, Rollback, Status, Update

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, website

Instance Method Details

#cancel(stack_name = :current) ⇒ Object



71
72
73
# File 'lib/lono/cfn.rb', line 71

def cancel(stack_name=:current)
  Cancel.new(stack_name, options).run
end

#create(stack_name) ⇒ Object



35
36
37
# File 'lib/lono/cfn.rb', line 35

def create(stack_name)
  Create.new(stack_name, options).run
end

#currentObject



108
109
110
# File 'lib/lono/cfn.rb', line 108

def current
  Current.new(options).run
end

#delete(stack_name = :current) ⇒ Object



63
64
65
# File 'lib/lono/cfn.rb', line 63

def delete(stack_name=:current)
  Delete.new(stack_name, options).run
end

#deploy(stack_name = :current) ⇒ Object



54
55
56
# File 'lib/lono/cfn.rb', line 54

def deploy(stack_name=:current)
  Deploy.new(stack_name, options).run
end

#diff(stack_name = :current) ⇒ Object



90
91
92
# File 'lib/lono/cfn.rb', line 90

def diff(stack_name=:current)
  Diff.new(stack_name, options).run
end

#download(stack_name = :current) ⇒ Object



99
100
101
# File 'lib/lono/cfn.rb', line 99

def download(stack_name=:current)
  Download.new(stack_name, options).run
end

#preview(stack_name = :current) ⇒ Object



81
82
83
84
# File 'lib/lono/cfn.rb', line 81

def preview(stack_name=:current)
  Diff.new(stack_name, options).run if options[:diff]
  Preview.new(stack_name, options).run
end

#status(stack_name = :current) ⇒ Object



115
116
117
118
119
# File 'lib/lono/cfn.rb', line 115

def status(stack_name=:current)
  status = Lono::Cfn::Status.new(stack_name, options)
  success = status.run
  exit 3 unless success
end

#update(stack_name = :current) ⇒ Object



44
45
46
# File 'lib/lono/cfn.rb', line 44

def update(stack_name=:current)
  Update.new(stack_name, options).run
end