ssport 0.1.4 → 0.1.5
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 +6 -4
- 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: a03b859f30c0c302704140239f36fa1fbe083ecb36cfbd75156b82fe42ddbecb
|
4
|
+
data.tar.gz: 9c337d40680f117dbba656dc70f2035a0e9f9c98071715635b0deb5d7d413dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a854d3b50180f4bcbc93a91a1e80221cbcd37618f7eeec394943d603b9e4505d87a54111e853f4bf07d9425d4dd214b5bfb92c4cfd9de54952c9fca868a69e38
|
7
|
+
data.tar.gz: c6a80d955329a56a96b6b1b03c8eb5d1c7232489c5168373ecb0c436f17fe4869d463f72fac5cd8acca2cd317371957a8576deb56f95d4187113b1b88b70a3db
|
data/lib/ssport/version.rb
CHANGED
data/lib/ssport.rb
CHANGED
@@ -58,6 +58,8 @@ module Ssport
|
|
58
58
|
|
59
59
|
def self.ssh(options)
|
60
60
|
|
61
|
+
output = ""
|
62
|
+
|
61
63
|
Net::SSH.start(options[:server], options[:username], :password => options[:pass]) do |ssh|
|
62
64
|
# capture all stderr and stdout output from a remote process
|
63
65
|
script = %Q{
|
@@ -67,12 +69,12 @@ module Ssport
|
|
67
69
|
ssport -b #{options[:port]} -c #{options[:config]}
|
68
70
|
}
|
69
71
|
output = ssh.exec!(script)
|
70
|
-
p '----------------Remote---------------'
|
71
|
-
puts output.colorize(:red)
|
72
|
-
p '-------------------------------------'
|
73
|
-
|
74
72
|
end
|
75
73
|
|
74
|
+
p '----------------Remote---------------'
|
75
|
+
puts output.colorize(:red)
|
76
|
+
p '-------------------------------------'
|
77
|
+
|
76
78
|
end
|
77
79
|
|
78
80
|
end
|