direct_ssh 0.1.0 → 0.1.1
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.
- data/bin/simple_ssh +2 -2
- data/lib/direct_ssh/version.rb +1 -1
- metadata +1 -1
data/bin/simple_ssh
CHANGED
|
@@ -31,10 +31,10 @@ def main(argv)
|
|
|
31
31
|
puts host + ' - ' + ssh.exec!('cat /etc/*-release')
|
|
32
32
|
|
|
33
33
|
input = ''
|
|
34
|
-
until input == '
|
|
34
|
+
until input == 'exit'
|
|
35
35
|
print '# '
|
|
36
36
|
input = $stdin.gets.chomp
|
|
37
|
-
ssh_exec!(ssh, input) if input != '
|
|
37
|
+
ssh_exec!(ssh, input) if input != 'exit'
|
|
38
38
|
end
|
|
39
39
|
}
|
|
40
40
|
rescue ArgumentError => e
|
data/lib/direct_ssh/version.rb
CHANGED