Method: Waitress::Configuration#all_hosts

Defined in:
lib/waitress/configure.rb

#all_hosts(&block) ⇒ Object

Over all the registered VHosts, call this method. Use this to configure a similar setting for all vhosts at once instead of duplicating code across all of them.



113
114
115
# File 'lib/waitress/configure.rb', line 113

def all_hosts &block
  @hosts.each { |h| block.call(h) }
end