ssh-manager 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ssh/manager/cli.rb +2 -2
- data/lib/ssh/manager/version.rb +1 -1
- 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: 103b68fe6312ce929a945d39d18a5ccb420b26c4
|
4
|
+
data.tar.gz: 9344a6da7e8c824744f5f6e39c50144e20a84baf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dcc80434c9f0ae484247f78c4d514b996c13f97e8d5607db5ecbe4fdd6c07bdd546dbcd05d7ecc5d6a1b6cca7a7b52dc52ede41336011e47f3feaa8fbc58f37
|
7
|
+
data.tar.gz: b7b158e35c70408d92cc79d58bd166abbafd7baaa96d6957de8f0f047a1e903aea1e0e5505f3a0503b17b0deab6f506c16d6265a88d3eb1d4f7fe471ef7ce744
|
data/lib/ssh/manager/cli.rb
CHANGED
@@ -14,10 +14,10 @@ module SSH
|
|
14
14
|
def connect_to(id)
|
15
15
|
ip = SSH::Manager::Database.new.get_connection_data[id.to_i-1][0]
|
16
16
|
user = SSH::Manager::Database.new.get_connection_data[id.to_i-1][1]
|
17
|
-
if CONFIG['terminal'] == "xfce4-terminal" || "gnome-terminal"
|
17
|
+
if CONFIG['terminal'] == "xfce4-terminal" || CONFIG['terminal'] == "gnome-terminal"
|
18
18
|
%x(#{CONFIG['terminal']} --command="ssh #{user}@#{ip}")
|
19
19
|
elsif CONFIG['terminal'] == "xterm"
|
20
|
-
%x(#{CONFIG['terminal']} -
|
20
|
+
%x(#{CONFIG['terminal']} -e "ssh #{user}@#{ip}")
|
21
21
|
else
|
22
22
|
puts "We dont support #{CONFIG['terminal']} right now"
|
23
23
|
puts "Check Github for further development or contributing"
|
data/lib/ssh/manager/version.rb
CHANGED