Class: ProcessWanker::ConfigClientHostBuilder
- Defined in:
- lib/config/config_client_host.rb
Instance Method Summary collapse
- #auth(&block) ⇒ Object
- #build(container, args, block) ⇒ Object
- #hostname(v) ⇒ Object
- #port(v) ⇒ Object
- #tags(*t) ⇒ Object
Methods inherited from Builder
Instance Method Details
#auth(&block) ⇒ Object
113 114 115 |
# File 'lib/config/config_client_host.rb', line 113 def auth(&block) @config.auth=Deferred.new(@config,[],block,ConfigAuthBuilder) end |
#build(container, args, block) ⇒ Object
107 108 109 110 111 |
# File 'lib/config/config_client_host.rb', line 107 def build(container,args,block) super(container,args,block) @config.=@config..keys.sort @config end |
#hostname(v) ⇒ Object
117 118 119 |
# File 'lib/config/config_client_host.rb', line 117 def hostname(v) @config.hostname=v end |
#port(v) ⇒ Object
121 122 123 |
# File 'lib/config/config_client_host.rb', line 121 def port(v) @config.port=v.to_i end |
#tags(*t) ⇒ Object
125 126 127 128 129 |
# File 'lib/config/config_client_host.rb', line 125 def (*t) t.each do |v| @config.[v.to_s]=true end end |