Class: ProcessWanker::ConfigClientHostBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/config/config_client_host.rb

Instance Method Summary collapse

Methods inherited from Builder

#klass

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.tags=@config.tags.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 tags(*t)
  t.each do |v|
    @config.tags[v.to_s]=true
  end
end