lib/sanford/host.rb in sanford-0.9.0 vs lib/sanford/host.rb in sanford-0.10.0
- old
+ new
@@ -23,11 +23,10 @@
option :port, Integer
option :pid_file, Pathname
option :logger, :default => proc{ Sanford.config.logger }
option :verbose_logging, :default => true
option :receives_keep_alive, :default => false
- option :runner, :default => proc{ Sanford.config.runner }
option :error_procs, Array, :default => []
option :init_procs, Array, :default => []
def initialize(host)
self.name = host.class.to_s
@@ -77,14 +76,10 @@
def receives_keep_alive(*args)
self.configuration.receives_keep_alive *args
end
- def runner(*args)
- self.configuration.runner *args
- end
-
def error(&block)
self.configuration.error_procs << block
end
def init(&block)
@@ -109,10 +104,10 @@
"port=#{self.configuration.port.inspect}>"
end
module ClassMethods
- # the class level of a `Host` should just proxy it's methods down to it's
+ # the class level of a `Host` should just proxy its methods down to its
# instance (it's a `Singleton`)
# `name` is defined by all objects, so we can't rely on `method_missing`
def name(*args)
self.instance.name(*args)