Sha256: 421923544fb33c4ed7312c12295105b5308d2ee9c8399065f6a6180e1b32e5c7

Contents?: true

Size: 1.41 KB

Versions: 3

Compression:

Stored size: 1.41 KB

Contents

require 'forwardable'
require 'json'
require 'pathname'
require 'yaml'

require 'humidifier/utils'
require 'humidifier/fn'
require 'humidifier/ref'
require 'humidifier/props'

require 'humidifier/props/base'
%w[boolean double integer json list map string structure timestamp].each do |type|
  require "humidifier/props/#{type}_prop"
end

require 'humidifier/aws_shim'
require 'humidifier/condition'
require 'humidifier/configuration'
require 'humidifier/loader'
require 'humidifier/mapping'
require 'humidifier/output'
require 'humidifier/parameter'
require 'humidifier/resource'
require 'humidifier/sdk_payload'
require 'humidifier/serializer'
require 'humidifier/sleeper'
require 'humidifier/stack'
require 'humidifier/version'

# container module for all gem classes
module Humidifier
  class << self
    # the configuration instance
    def config
      @config ||= Configuration.new
    end

    # yield the config object to the block for setting user params
    def configure
      yield config
    end

    # convenience method for calling cloudformation functions
    def fn
      Fn
    end

    # convenience method for creating references
    def ref(reference)
      Ref.new(reference)
    end

    # the list of all registered resources
    def registry
      @registry ||= {}
    end

    # convenience method for finding classes by AWS name
    def [](aws_name)
      registry[aws_name]
    end
  end
end

Humidifier::Loader.load

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
humidifier-1.8.0 lib/humidifier.rb
humidifier-1.7.0 lib/humidifier.rb
humidifier-1.6.1 lib/humidifier.rb