Module: Upcheck

Defined in:
lib/upcheck.rb,
lib/upcheck/errors.rb,
lib/upcheck/version.rb,
lib/upcheck/incident.rb,
lib/upcheck/provider.rb,
lib/upcheck/registry.rb,
lib/upcheck/resource.rb,
lib/upcheck/component.rb,
lib/upcheck/http_client.rb,
lib/upcheck/configuration.rb,
lib/upcheck/adapters/heroku.rb,
lib/upcheck/adapters/statuspage.rb

Defined Under Namespace

Modules: Adapters, Registry Classes: Component, Configuration, ConnectionError, Error, HTTPClient, HTTPError, Incident, ParseError, Provider, Resource, TimeoutError, TransportError, UnknownProviderError

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configurationObject



17
18
19
# File 'lib/upcheck.rb', line 17

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/upcheck.rb', line 21

def configure
  yield configuration
end

.for(name) ⇒ Object



29
30
31
# File 'lib/upcheck.rb', line 29

def for(name)
  Provider.new(Registry.resolve(name))
end

.reset!Object



25
26
27
# File 'lib/upcheck.rb', line 25

def reset!
  @configuration = Configuration.new
end