ssport 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.
- checksums.yaml +4 -4
- data/lib/ssport/version.rb +1 -1
- data/lib/ssport.rb +4 -5
- 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: 5a0610c5790b1f33b38c635c882fb3cd441fee0a6c73fe08a57737cc4f762255
|
4
|
+
data.tar.gz: ef32f21283eecf84c9333fd9dcd56b00fbad677ac3dceb83a0f8dce00056768b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2a1515d7d692dd0d0e36241535f0f9ae8177f7c8e1373b11a80a0d48aed28a2f764f7006582ee558925711eea4e79e5e488835e7eee0df484e092d46e92b419
|
7
|
+
data.tar.gz: a1811c5175787c1276e405501c9d05be13c7f5ab7c8553bfb4b0a4153305d24b5335b5e26ad8892c5e32dec96988b01ba03e2c8af796268ceae14cec591476fc
|
data/lib/ssport/version.rb
CHANGED
data/lib/ssport.rb
CHANGED
@@ -58,17 +58,16 @@ module Ssport
|
|
58
58
|
|
59
59
|
Net::SSH.start(options[:server], options[:username], :password => options[:pass]) do |ssh|
|
60
60
|
# capture all stderr and stdout output from a remote process
|
61
|
-
|
61
|
+
script = %Q{
|
62
62
|
if ! [ -x "$(command -v ssport)" ]; then
|
63
63
|
gem install ssport
|
64
64
|
if
|
65
65
|
ssport -b #{options[:port]}
|
66
|
-
|
67
|
-
output = ssh.exec!(
|
68
|
-
|
66
|
+
}
|
67
|
+
output = ssh.exec!(script)
|
68
|
+
puts output
|
69
69
|
end
|
70
70
|
|
71
|
-
puts output
|
72
71
|
end
|
73
72
|
|
74
73
|
end
|