Module: Humidifier

Defined in:
lib/humidifier.rb,
lib/humidifier/fn.rb,
lib/humidifier/cli.rb,
lib/humidifier/ref.rb,
lib/humidifier/props.rb,
lib/humidifier/stack.rb,
lib/humidifier/config.rb,
lib/humidifier/loader.rb,
lib/humidifier/output.rb,
lib/humidifier/mapping.rb,
lib/humidifier/upgrade.rb,
lib/humidifier/version.rb,
lib/humidifier/resource.rb,
lib/humidifier/condition.rb,
lib/humidifier/directory.rb,
lib/humidifier/parameter.rb,
lib/humidifier/serializer.rb,
lib/humidifier/config/mapper.rb,
lib/humidifier/config/mapping.rb

Overview

container module for all gem classes

Defined Under Namespace

Modules: Loader, Props Classes: CLI, Condition, Config, Directory, Error, Fn, Mapping, Output, Parameter, Ref, Resource, Serializer, Stack, Upgrade

Constant Summary collapse

SPECIFICATION =

The file name of the specification for consistency.

"CloudFormationResourceSpecification.json"
VERSION =
"4.2.0"

Class Method Summary collapse

Class Method Details

.[](aws_name) ⇒ Object

convenience method for finding classes by AWS name



58
59
60
# File 'lib/humidifier.rb', line 58

def [](aws_name)
  registry[aws_name]
end

.configObject

the configuration instance



33
34
35
# File 'lib/humidifier.rb', line 33

def config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

yield the config object to the block for setting user params

Yields:



38
39
40
# File 'lib/humidifier.rb', line 38

def configure
  yield config
end

.fnObject

convenience method for calling cloudformation functions



43
44
45
# File 'lib/humidifier.rb', line 43

def fn
  Fn
end

.ref(reference) ⇒ Object

convenience method for creating references



48
49
50
# File 'lib/humidifier.rb', line 48

def ref(reference)
  Ref.new(reference)
end

.registryObject

the list of all registered resources



53
54
55
# File 'lib/humidifier.rb', line 53

def registry
  @registry ||= {}
end

.underscore(names) ⇒ Object

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



63
64
65
# File 'lib/humidifier.rb', line 63

def underscore(names)
  names.to_h { |name| [name, name.underscore.to_sym] }.freeze
end