Module: IPVSLitmus
- Defined in:
- lib/ipvs_litmus.rb,
lib/ipvs_litmus/app.rb,
lib/ipvs_litmus/health.rb,
lib/ipvs_litmus/service.rb,
lib/ipvs_litmus/version.rb,
lib/ipvs_litmus/cli/admin.rb,
lib/ipvs_litmus/cli/server.rb,
lib/ipvs_litmus/status_file.rb,
lib/ipvs_litmus/configuration.rb,
lib/ipvs_litmus/forced_health.rb,
lib/ipvs_litmus/dependency/http.rb,
lib/ipvs_litmus/metric/cpu_load.rb,
lib/ipvs_litmus/metric/available_memory.rb
Defined Under Namespace
Modules: CLI, Dependency, Metric Classes: App, Configuration, ForcedHealth, Health, Service, StatusFile
Constant Summary collapse
- VERSION =
"0.0.2"
Class Attribute Summary collapse
-
.config_dir ⇒ Object
Returns the value of attribute config_dir.
-
.services ⇒ Object
readonly
Returns the value of attribute services.
Class Method Summary collapse
Class Attribute Details
.config_dir ⇒ Object
Returns the value of attribute config_dir.
22 23 24 |
# File 'lib/ipvs_litmus.rb', line 22 def config_dir @config_dir end |
.services ⇒ Object (readonly)
Returns the value of attribute services.
22 23 24 |
# File 'lib/ipvs_litmus.rb', line 22 def services @services end |
Class Method Details
.configure(filename) ⇒ Object
25 26 27 28 |
# File 'lib/ipvs_litmus.rb', line 25 def self.configure(filename) @config_file = filename @services = IPVSLitmus::Configuration.new(filename).evaluate end |
.reload ⇒ Object
34 35 36 |
# File 'lib/ipvs_litmus.rb', line 34 def self.reload configure(@config_file) end |
.reset ⇒ Object
38 39 40 |
# File 'lib/ipvs_litmus.rb', line 38 def self.reset @services = {} end |