module Humidifier

container module for all gem classes

Constants

VERSION

Public Class Methods

[](aws_name) click to toggle source

convenience method for finding classes by AWS name

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

the configuration instance

# File lib/humidifier.rb, line 30
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 35
def configure
  yield config
end
fn() click to toggle source

convenience method for calling cloudformation functions

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

convenience method for creating references

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

the list of all registered resources

# File lib/humidifier.rb, line 50
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 60
def underscore(names)
  names.map { |name| [name, name.underscore.to_sym] }.to_h.freeze
end