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 +4 -4
- data/.ruby-gemset +1 -0
- data/README.md +11 -2
- data/lib/ruby-ssh/result.rb +4 -0
- data/lib/ruby-ssh/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec38ad37a058e24bf4f535147d3208a46ade17c2
|
4
|
+
data.tar.gz: 820b1afc6741fd3855a9e46b324438b6ce618fc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
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
|
-
|
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
|
|
data/lib/ruby-ssh/result.rb
CHANGED
data/lib/ruby-ssh/version.rb
CHANGED
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.
|
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-
|
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:
|