Class: Lono::Cfn
- Inherits:
-
Command
show all
- Defined in:
- lib/lono/cfn.rb,
lib/lono/cfn/base.rb,
lib/lono/cfn/create.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/rollback.rb
Defined Under Namespace
Modules: AwsService, Suffix, Util
Classes: Base, 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
#create(stack_name) ⇒ Object
37
38
39
|
# File 'lib/lono/cfn.rb', line 37
def create(stack_name)
Create.new(stack_name, options).run
end
|
#current ⇒ Object
102
103
104
|
# File 'lib/lono/cfn.rb', line 102
def current
Current.new(options).run
end
|
#delete(stack_name = :current) ⇒ Object
65
66
67
|
# File 'lib/lono/cfn.rb', line 65
def delete(stack_name=:current)
Delete.new(stack_name, options).run
end
|
#deploy(stack_name = :current) ⇒ Object
56
57
58
|
# File 'lib/lono/cfn.rb', line 56
def deploy(stack_name=:current)
Deploy.new(stack_name, options).run
end
|
#diff(stack_name = :current) ⇒ Object
84
85
86
|
# File 'lib/lono/cfn.rb', line 84
def diff(stack_name=:current)
Diff.new(stack_name, options).run
end
|
#download(stack_name = :current) ⇒ Object
93
94
95
|
# File 'lib/lono/cfn.rb', line 93
def download(stack_name=:current)
Download.new(stack_name, options).run
end
|
#preview(stack_name = :current) ⇒ Object
75
76
77
78
|
# File 'lib/lono/cfn.rb', line 75
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
109
110
111
112
113
|
# File 'lib/lono/cfn.rb', line 109
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
46
47
48
|
# File 'lib/lono/cfn.rb', line 46
def update(stack_name=:current)
Update.new(stack_name, options).run
end
|