Sha256: 6ca6c4135b467efeef5fbea4af8aa292cf6409194a72567054fe8844264d6910

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

# Global variables to adjust CfnDsl behavior
module CfnDsl
  module_function

  def disable_binding
    @disable_binding = true
  end

  def disable_binding?
    @disable_binding
  end

  def disable_deep_merge
    @disable_deep_merge = true
  end

  def disable_deep_merge?
    @disable_deep_merge
  end

  def specification_file(file = nil)
    @specification_file = file if file
    @specification_file ||= File.join(ENV['HOME'], '.cfndsl/resource_specification.json')
    @specification_file
  end

  def reserved_items
    %w[Resource Rule Parameter Output].freeze
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cfndsl-0.17.5 lib/cfndsl/globals.rb
cfndsl-0.17.4 lib/cfndsl/globals.rb
cfndsl-0.17.3 lib/cfndsl/globals.rb
cfndsl-0.17.2 lib/cfndsl/globals.rb