module Humidifier

container module for all gem classes

Constants

SPECIFICATION

The file name of the specification for consistency.

VERSION

Public Class Methods

[](aws_name) click to toggle source

convenience method for finding classes by AWS name

# File lib/humidifier.rb, line 58
def [](aws_name)
  registry[aws_name]
end
config() click to toggle source

the configuration instance

# File lib/humidifier.rb, line 33
def config
  @config ||= Config.new
end
configure() { |config| ... } click to toggle source

yield the config object to the block for setting user params

# File lib/humidifier.rb, line 38
def configure
  yield config
end
fn() click to toggle source

convenience method for calling cloudformation functions

# File lib/humidifier.rb, line 43
def fn
  Fn
end
ref(reference) click to toggle source

convenience method for creating references

# File lib/humidifier.rb, line 48
def ref(reference)
  Ref.new(reference)
end
registry() click to toggle source

the list of all registered resources

# File lib/humidifier.rb, line 53
def registry
  @registry ||= {}
end
underscore(names) click to toggle source

a frozen hash of the given names mapped to their underscored version

# File lib/humidifier.rb, line 63
def underscore(names)
  names.to_h { |name| [name, name.underscore.to_sym] }.freeze
end