Module: Officer::Connection::EmCallbacks
- Included in:
- Connection
- Defined in:
- lib/officer/connection.rb
Instance Method Summary collapse
Instance Method Details
#post_init ⇒ Object
5 6 7 8 9 10 |
# File 'lib/officer/connection.rb', line 5 def post_init @connected = true @timers = {} # name => Timer Officer::Log.info "Connected: #{to_host_s}" end |
#receive_line(line) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/officer/connection.rb', line 12 def receive_line line line.chomp! Officer::Log.debug "#{to_host_s} received line: #{line}" command = Officer::Command::Factory.create line, self command.execute rescue Exception => e Officer::Log.error e raise end |