Class: ProcessWanker::ConfigClient

Inherits:
ConfigNode show all
Defined in:
lib/config/config_client.rb

Instance Attribute Summary collapse

Attributes inherited from ConfigNode

#container

Instance Method Summary collapse

Methods inherited from ConfigNode

#find_attributes, #get_auth

Instance Attribute Details

#authObject

Returns the value of attribute auth.



36
37
38
# File 'lib/config/config_client.rb', line 36

def auth
  @auth
end

#clustersObject

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