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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1097d6d64ab948059c12a084e59962c0a55ba6d24159e1d8de7ce02102375d7
4
- data.tar.gz: 5842270f5dbf4facade4efea111501a6f167dcfb60c24227b271d1f0c5dc493a
3
+ metadata.gz: 5a0610c5790b1f33b38c635c882fb3cd441fee0a6c73fe08a57737cc4f762255
4
+ data.tar.gz: ef32f21283eecf84c9333fd9dcd56b00fbad677ac3dceb83a0f8dce00056768b
5
5
  SHA512:
6
- metadata.gz: cb710edd81dc0b0d0bc30401dfb8cb7f6a6a2e31a972af6a04474418a59b26e2308d5915d2c372fb5ee9894f5b42a5aad98aea751aa3a2e0819bba4eb39add6a
7
- data.tar.gz: ba1fbd0375ac0899d0db1d4b7438a7d124bdd21ea528c62aa5cc5db6ccc17f6d2868ba12f152e2b4d36da557fe53be23b82b34a3779f69ffa13eb4bcaa7422a0
6
+ metadata.gz: a2a1515d7d692dd0d0e36241535f0f9ae8177f7c8e1373b11a80a0d48aed28a2f764f7006582ee558925711eea4e79e5e488835e7eee0df484e092d46e92b419
7
+ data.tar.gz: a1811c5175787c1276e405501c9d05be13c7f5ab7c8553bfb4b0a4153305d24b5335b5e26ad8892c5e32dec96988b01ba03e2c8af796268ceae14cec591476fc
@@ -1,3 +1,3 @@
1
1
  module Ssport
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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
- parameter = """
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!("~/bin/command '#{parameter}'"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaich