em-simple_telnet 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/em-simple_telnet.rb +0 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1ca6b25581cf14e3cb707a65b4476a125cbad83
|
4
|
+
data.tar.gz: e0eac37b80f445ec35b66613ce1b94a1a6456805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32d9f6798cfec55f8bcdf56b82535c69e3b631db49ed3809531de6ac243c3f025ae31cc5a4719386688b575f5ac6c673782757bf1534bea5519e6a50687db44e
|
7
|
+
data.tar.gz: 2cb34b790a674199d51ed009ffca6b61c7214a3d169de9bf2c5d6ce692f075127355658f037eaba1d0c6695b8e8ec558038e8d829867249aecb93c13636955ba
|
data/lib/em-simple_telnet.rb
CHANGED
@@ -187,7 +187,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
|
|
187
187
|
fiber = Fiber.new do | callback |
|
188
188
|
connection = connect(opts, &blk)
|
189
189
|
callback.call if callback
|
190
|
-
@@_fiber_statuses.delete opts[:hostname]
|
191
190
|
end
|
192
191
|
|
193
192
|
if EventMachine.reactor_running?
|
@@ -428,7 +427,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
|
|
428
427
|
#
|
429
428
|
def timeout= seconds
|
430
429
|
@telnet_options[:timeout] = seconds
|
431
|
-
# warn "#{node}: Setting comm_inactivity_timeout to #{seconds} ...".yellow
|
432
430
|
set_comm_inactivity_timeout( seconds )
|
433
431
|
end
|
434
432
|
|
@@ -493,7 +491,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
|
|
493
491
|
# #log_output. Then calls #process_payload.
|
494
492
|
#
|
495
493
|
def receive_data data
|
496
|
-
@last_received_data = Time.now
|
497
494
|
@recently_received_data << data if $DEBUG
|
498
495
|
if @telnet_options[:telnet_mode]
|
499
496
|
c = @input_rest + data
|
@@ -633,11 +630,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
|
|
633
630
|
@fiber_resumer.(output)
|
634
631
|
end
|
635
632
|
|
636
|
-
@@_fiber_statuses = {}
|
637
|
-
def self._fiber_statuses
|
638
|
-
@@_fiber_statuses
|
639
|
-
end
|
640
|
-
|
641
633
|
##
|
642
634
|
# Read data from the host until a certain sequence is matched.
|
643
635
|
#
|
@@ -687,7 +679,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
|
|
687
679
|
# Pauses the current Fiber. When resumed, returns the value passed. If the
|
688
680
|
# value passed is an Exeption, it's raised.
|
689
681
|
def pause_and_wait_for_result
|
690
|
-
@@_fiber_statuses[node] = :paused
|
691
682
|
result = nil
|
692
683
|
while result == nil
|
693
684
|
# measure how long Fiber is paused
|
@@ -704,7 +695,6 @@ class EventMachine::Protocols::SimpleTelnet < EventMachine::Connection
|
|
704
695
|
end
|
705
696
|
end
|
706
697
|
|
707
|
-
@@_fiber_statuses[node] = :running
|
708
698
|
|
709
699
|
raise result if result.is_a? Exception
|
710
700
|
return result
|