ruby-ssh 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
  SHA1:
3
- metadata.gz: e81e278215379b5b8cc8771a869e5e30a56985b2
4
- data.tar.gz: fe632baf81715780f53ca88b989e3113ca337dab
3
+ metadata.gz: ec38ad37a058e24bf4f535147d3208a46ade17c2
4
+ data.tar.gz: 820b1afc6741fd3855a9e46b324438b6ce618fc1
5
5
  SHA512:
6
- metadata.gz: c48a393fbe770891c2513a17890c72975193063ef366736c78f2a262313923094088fbea31cc479b69930b7795d15587a5268ad3f0adf481aaacf16d7c8b43a6
7
- data.tar.gz: eb68f3c5109d9ccf7a141cdf64c9121006e3c6134a8a0d7288b24c266d004b5e9bddd3a601559ca0a723c67a5ae77e361c48eb1d1e6078cec4686a10c9f35f30
6
+ metadata.gz: 1e5467dda87eb2c8667acc19bf52ec71a6a837aff2f6c541f22f734e83b5a0d8e1ff5d17e7472a0d3c385da3e1c789275bef4114be0bf75f23bcccc009e02b22
7
+ data.tar.gz: f7aa8a58041d134abc92f45b60908329cafd8f4e750e465a78abbbf8cce9ea10d069ac58f95945859944b175fe8fbb3cf5c0a044f1211adb479d986320e7e087
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ ruby-ssh
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby::Ssh
1
+ # RubySSH
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ruby/ssh`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
@@ -22,7 +22,16 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ```
26
+ Net::SSH.start('ipaddress', 'username', password: 'password') do |ssh|
27
+ ssh.shell_runner do |runner|
28
+ result = runner.exec('ls -l')
29
+ puts result.success?
30
+ puts result.stdout
31
+ end
32
+ end
33
+ ```
34
+
26
35
 
27
36
  ## Development
28
37
 
@@ -6,5 +6,9 @@ module RubySSH
6
6
  @stdout = args[:stdout]
7
7
  @exit_status = args[:exit_status]
8
8
  end
9
+
10
+ def success?
11
+ @exit_status == 0
12
+ end
9
13
  end
10
14
  end
@@ -1,3 +1,3 @@
1
1
  module RubySSH
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ssh
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
  - a.harada
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-12 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - ".ruby-gemset"
77
78
  - Gemfile
78
79
  - README.md
79
80
  - Rakefile
@@ -109,4 +110,3 @@ signing_key:
109
110
  specification_version: 4
110
111
  summary: A simple library ssh access.
111
112
  test_files: []
112
- has_rdoc: