Class: Lono::Cfn

Inherits:
Command show all
Defined in:
lib/lono/cfn.rb,
lib/lono/cfn/base.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: Preview, Suffix, Util Classes: Base, Cancel, Create, Current, Delete, Deploy, Download, 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



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

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

#create(stack_name) ⇒ Object



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

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

#currentObject



104
105
106
# File 'lib/lono/cfn.rb', line 104

def current
  Current.new(options).run
end

#delete(stack_name = :current) ⇒ Object



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

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

#deploy(stack_name = :current) ⇒ Object



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

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

#download(stack_name = :current) ⇒ Object



95
96
97
# File 'lib/lono/cfn.rb', line 95

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

#preview(stack_name = :current) ⇒ Object



84
85
86
87
88
# File 'lib/lono/cfn.rb', line 84

def preview(stack_name=:current)
  Preview::Param.new(stack_name, options).run if options[:param_preview]
  Preview::Codediff.new(stack_name, options).run if options[:codediff_preview]
  Preview::Changeset.new(stack_name, options).run if options[:changeset_preview]
end

#status(stack_name = :current) ⇒ Object



111
112
113
114
115
# File 'lib/lono/cfn.rb', line 111

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



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

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