Method: Stax::Stack#skeleton

Defined in:
lib/stax/stack/crud.rb

#skeletonObject



273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
# File 'lib/stax/stack/crud.rb', line 273

def skeleton
  skel = {
    StackName: stack_name,
    TemplateBody: cfn_template_body,
    TemplateURL: cfn_template_url,
    Parameters: cfn_parameters_create,
    Capabilities: cfn_capabilities,
    StackPolicyBody: stack_policy,
    NotificationARNs: cfn_notification_arns,
    EnableTerminationProtection: cfn_termination_protection,
    Tags: cfn_tags_array,
  }.compact
  method = options[:pretty] ? :pretty_generate : :generate
  puts JSON.send(method, skel)
end