Module: Aws::Embedded::Metrics::Config

Defined in:
lib/aws-embedded-metrics-customink/config.rb

Defined Under Namespace

Classes: Configuration

Constant Summary collapse

DEFAULT_SINK =
Sinks::Stdout

Class Method Summary collapse

Class Method Details

.configObject



17
18
19
# File 'lib/aws-embedded-metrics-customink/config.rb', line 17

def config
  @config ||= Configuration.new
end

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

Yields:



8
9
10
11
# File 'lib/aws-embedded-metrics-customink/config.rb', line 8

def configure
  yield(config)
  config
end

.reconfigureObject



13
14
15
# File 'lib/aws-embedded-metrics-customink/config.rb', line 13

def reconfigure
  config.reconfigure { |c| yield(c) if block_given? }
end