Class: ProcessWanker::ConfigClient
- Inherits:
-
ConfigNode
- Object
- ConfigNode
- ProcessWanker::ConfigClient
- Defined in:
- lib/config/config_client.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#clusters ⇒ Object
Returns the value of attribute clusters.
Attributes inherited from ConfigNode
Instance Method Summary collapse
Methods inherited from ConfigNode
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth.
36 37 38 |
# File 'lib/config/config_client.rb', line 36 def auth @auth end |
#clusters ⇒ Object
Returns the value of attribute clusters.
37 38 39 |
# File 'lib/config/config_client.rb', line 37 def clusters @clusters end |
Instance Method Details
#get_cluster(name) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/config/config_client.rb', line 39 def get_cluster(name) @clusters ||= ConfigClientClusters.new if(name == "default" && !@clusters.clusters[name]) @clusters.clusters[name]=Deferred.new(self,[name],proc { host("localhost") { } },ConfigClientClusterBuilder) end @clusters.clusters[name] end |