lib/asir/transport/beanstalk.rb in asir_beanstalk-1.1.3 vs lib/asir/transport/beanstalk.rb in asir_beanstalk-1.1.4

- old
+ new

@@ -8,11 +8,11 @@ LINE_TERMINATOR = "\r\n".freeze attr_accessor :tube, :priority, :delay, :ttr def initialize *args - @port ||= 11300 + self.port_default ||= 11300 @tube ||= 'asir' @priority ||= 0 @delay ||= 0 @ttr ||= 600 super @@ -173,9 +173,10 @@ end def _start_conduit! addr = address ? "-l #{address} " : "" cmd = "beanstalkd #{addr}-p #{port}" + $stderr.puts " #{cmd}" if @conduit_options[:verbose] exec(cmd) end end # !SLIDE END end # class