Sha256: a1af1e9e503a6375e6948cac42bff69586f4deba4672f258fc23789975aaa48c

Contents?: true

Size: 360 Bytes

Versions: 13

Compression:

Stored size: 360 Bytes

Contents

module Jets::Cfn
  # Caches the built template to reduce filesystem IO calls.
  class BuiltTemplate
    class << self
      @@cache = {}
      def get(path)
        if @@cache[path]
          @@cache[path] # using cache
        else
          @@cache[path] = Jets::Util::Yamler.load_file(path) # setting and using cache
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jets-4.0.12 lib/jets/cfn/built_template.rb
jets-4.0.11 lib/jets/cfn/built_template.rb
jets-4.0.10 lib/jets/cfn/built_template.rb
jets-4.0.9 lib/jets/cfn/built_template.rb
jets-4.0.8 lib/jets/cfn/built_template.rb
jets-4.0.7 lib/jets/cfn/built_template.rb
jets-4.0.6 lib/jets/cfn/built_template.rb
jets-4.0.5 lib/jets/cfn/built_template.rb
jets-4.0.4 lib/jets/cfn/built_template.rb
jets-4.0.3 lib/jets/cfn/built_template.rb
jets-4.0.2 lib/jets/cfn/built_template.rb
jets-4.0.1 lib/jets/cfn/built_template.rb
jets-4.0.0 lib/jets/cfn/built_template.rb