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



74
75
76
# File 'lib/lono/cfn.rb', line 74

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

#create(stack_name) ⇒ Object



38
39
40
# File 'lib/lono/cfn.rb', line 38

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

#currentObject



106
107
108
# File 'lib/lono/cfn.rb', line 106

def current
  Current.new(options).run
end

#delete(stack_name = :current) ⇒ Object



66
67
68
# File 'lib/lono/cfn.rb', line 66

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

#deploy(stack_name = :current) ⇒ Object



57
58
59
# File 'lib/lono/cfn.rb', line 57

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

#download(stack_name = :current) ⇒ Object



97
98
99
# File 'lib/lono/cfn.rb', line 97

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

#preview(stack_name = :current) ⇒ Object



86
87
88
89
90
# File 'lib/lono/cfn.rb', line 86

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



113
114
115
116
117
# File 'lib/lono/cfn.rb', line 113

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



47
48
49
# File 'lib/lono/cfn.rb', line 47

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