Class: CuffSert::BaseAction
- Inherits:
-
Object
- Object
- CuffSert::BaseAction
- Defined in:
- lib/cuffsert/actions.rb
Direct Known Subclasses
CreateStackAction, MessageAction, RecreateStackAction, UpdateStackAction
Instance Attribute Summary collapse
-
#cfclient ⇒ Object
Returns the value of attribute cfclient.
-
#confirmation ⇒ Object
Returns the value of attribute confirmation.
-
#s3client ⇒ Object
Returns the value of attribute s3client.
Instance Method Summary collapse
-
#initialize(meta, stack) ⇒ BaseAction
constructor
A new instance of BaseAction.
- #upload_template_if_oversized(cfargs) ⇒ Object
Constructor Details
#initialize(meta, stack) ⇒ BaseAction
Returns a new instance of BaseAction.
11 12 13 14 15 16 17 |
# File 'lib/cuffsert/actions.rb', line 11 def initialize(, stack) @cfclient = nil @confirmation = nil = @s3client = nil @stack = stack end |
Instance Attribute Details
#cfclient ⇒ Object
Returns the value of attribute cfclient.
9 10 11 |
# File 'lib/cuffsert/actions.rb', line 9 def cfclient @cfclient end |
#confirmation ⇒ Object
Returns the value of attribute confirmation.
9 10 11 |
# File 'lib/cuffsert/actions.rb', line 9 def confirmation @confirmation end |
#s3client ⇒ Object
Returns the value of attribute s3client.
9 10 11 |
# File 'lib/cuffsert/actions.rb', line 9 def s3client @s3client end |
Instance Method Details
#upload_template_if_oversized(cfargs) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/cuffsert/actions.rb', line 19 def upload_template_if_oversized(cfargs) if needs_template_upload?(cfargs) raise 'Template bigger than 51200; please supply --s3-upload-prefix' unless @s3client uri, progress = @s3client.upload(.stack_uri) [CuffSert.s3_uri_to_https(uri, .aws_region).to_s, progress] else [nil, Rx::Observable.empty] end end |