em-ssh 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/lib/em-ssh/callbacks.rb +4 -0
- data/lib/em-ssh/shell.rb +2 -0
- data/lib/em-ssh/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/lib/em-ssh/callbacks.rb
CHANGED
@@ -25,6 +25,10 @@ module EventMachine
|
|
25
25
|
@clbks ||= {}
|
26
26
|
end # callbacks
|
27
27
|
|
28
|
+
def callbacks=(clbks)
|
29
|
+
@clbks = clbks
|
30
|
+
end
|
31
|
+
|
28
32
|
|
29
33
|
# Signal that an event has occured.
|
30
34
|
# Each callback will receive whatever args are passed to fire, or the object that the event was fired upon.
|
data/lib/em-ssh/shell.rb
CHANGED
@@ -183,6 +183,8 @@ module EventMachine
|
|
183
183
|
@closed = false
|
184
184
|
@shell = shell
|
185
185
|
shell.extend(EventMachine::Ssh::Connection::Channel::Interactive)
|
186
|
+
# Share callbacks with shell
|
187
|
+
send(:callbacks=, shell.callbacks)
|
186
188
|
shell.line_terminator = @line_terminator if @line_terminator
|
187
189
|
shell.on(:data) { |data| debug("#{shell.dump_buffer}") }
|
188
190
|
set_open_status(self)
|
data/lib/em-ssh/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|