lib/humidifier.rb in humidifier-0.2.0 vs lib/humidifier.rb in humidifier-0.3.0
- old
+ new
@@ -9,10 +9,11 @@
require 'humidifier/ref'
require 'humidifier/props'
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'
@@ -23,9 +24,19 @@
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