class CuffSert::BaseAction
Attributes
cfclient[RW]
confirmation[RW]
s3client[RW]
Public Class Methods
new(meta, stack)
click to toggle source
# File lib/cuffsert/actions.rb, line 11 def initialize(meta, stack) @cfclient = nil @confirmation = nil @meta = meta @s3client = nil @stack = stack end
Public Instance Methods
upload_template_if_oversized(cfargs)
click to toggle source
# 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(@meta.stack_uri) [CuffSert.s3_uri_to_https(uri, @meta.aws_region).to_s, progress] else [nil, Rx::Observable.empty] end end
Private Instance Methods
needs_template_upload?(cfargs)
click to toggle source
# File lib/cuffsert/actions.rb, line 31 def needs_template_upload?(cfargs) cfargs[:template_body].nil? && cfargs[:template_url].nil? && !cfargs[:use_previous_template] end