bard 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard/command.rb +3 -5
- data/lib/bard/git.rb +0 -2
- data/lib/bard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02e64487d18917a07903bf229f7d75c39c78bffa186e413fd7f43559c0bc1360
|
4
|
+
data.tar.gz: 78ceaef22043bf34ec0a17502911418b295955f2beb18fcad85b86319d468c1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cc63bf55fc0ab55ce704e40a7e55d30b0c4c29c25d8667b92bd0d0d1cfa606ef6f29c38437ec1f8d35d1459447d9832d409db31f981aa35db9f2642ce6a0fe5
|
7
|
+
data.tar.gz: a1c839d0a04e5f63a970c7480116385e51e1490dc009ae54d33d81ab63e209b606f9ae20d0055e65aba16d2668a7ce013bf80de10284d9f0b3eb1b220ae17d8f
|
data/lib/bard/command.rb
CHANGED
@@ -51,7 +51,6 @@ module Bard
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def remote_command quiet: false
|
54
|
-
ssh_key = on.ssh_key ? "-i #{on.ssh_key} " : ""
|
55
54
|
cmd = command
|
56
55
|
if on.env
|
57
56
|
cmd = "#{on.env} #{command}"
|
@@ -59,11 +58,10 @@ module Bard
|
|
59
58
|
unless home
|
60
59
|
cmd = "cd #{on.path} && #{cmd}"
|
61
60
|
end
|
62
|
-
|
63
|
-
cmd = "ssh -tt #{ssh_key}
|
61
|
+
ssh_key = on.ssh_key ? "-i #{on.ssh_key} " : ""
|
62
|
+
cmd = "ssh -tt #{ssh_key} #{on.ssh_uri} '#{cmd}'"
|
64
63
|
if on.gateway
|
65
|
-
|
66
|
-
cmd = "ssh -tt -p#{uri.port} #{uri.user}@#{uri.host} \"#{cmd}\""
|
64
|
+
cmd = "ssh -tt #{on.ssh_uri(:gateway)} \"#{cmd}\""
|
67
65
|
end
|
68
66
|
cmd += " 2>&1" if quiet
|
69
67
|
cmd
|
data/lib/bard/git.rb
CHANGED
data/lib/bard/version.rb
CHANGED