lib/hyperdrive/dsl.rb in hyperdrive-0.0.18 vs lib/hyperdrive/dsl.rb in hyperdrive-0.0.19

- old
+ new

@@ -55,11 +55,11 @@ def instrumenter(instrumenter) @config[:instrumenter] = instrumenter || Hyperdrive::Instrumenters::Noop end - def resource(name) - @resources[name] = Resource.new(name, @config, &Proc.new).resource + def resource(name, options = {}) + @resources[name] = Resource.new(name, options, &Proc.new).resource end def reset! # not terribly useful outside of a test environment :( @config = default_config.dup @resources = {}