Module: Sr71
- Defined in:
- lib/sr71.rb,
lib/sr71/cli.rb,
lib/sr71/logger.rb,
lib/sr71/ticker.rb,
lib/sr71/service.rb,
lib/sr71/version.rb,
lib/sr71/http_check.rb,
lib/sr71/configuration.rb
Defined Under Namespace
Classes: CLI, Configuration, HttpCheck, Logger, Service, Ticker
Constant Summary collapse
- VERSION =
"0.0.2"
Class Attribute Summary collapse
-
.services ⇒ Object
Returns the value of attribute services.
Class Method Summary collapse
Class Attribute Details
.services ⇒ Object
Returns the value of attribute services.
13 14 15 |
# File 'lib/sr71.rb', line 13 def services @services end |
Class Method Details
.configure(options) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/sr71.rb', line 18 def self.configure() @config_file = [:sr71_config] @config = Configuration.from_file(@config_file) @services = @config.map do | (name, attributes) | Sr71::Service.new(attributes) end end |