ssh-copy-id.rb 0.1.1 → 0.1.2
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 +7 -0
- data/README.md +1 -1
- data/lib/ssh-copy-id.rb +2 -2
- data/lib/ssh-copy-id/version.rb +1 -1
- metadata +12 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e19ae2927c2f97e4bddb34219373a60f8747d5ea
|
4
|
+
data.tar.gz: c3fa33d2091c3129182553b031773d85f24da435
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8760da669427997068311c3b2335993bf1b5690de062f707ef3f92eceb15d2280583c22e3c3e32d39bfbfed16a1f796106ea98739863b21e4e5fd70543e23309
|
7
|
+
data.tar.gz: 6bdc865c97ed3570b6edc94183c45f717fc51c8ee4bb4fd10f820346d14ac9aed77bb28e16b068a48b4743751f7d3cc59b9fa7cbdd954916707346312392c009
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ usage: ssh-copy-id.rb [-i IDENDITY] [-u USER] [-p PASSWORD] [USER[:PASSWORD]@]HO
|
|
16
16
|
|
17
17
|
-i, --identity=IDENTITY Identity file. Default: ~/.ssh/id_rsa.pub
|
18
18
|
-u, --username=USERNAME Username. Default: current user.
|
19
|
-
-p, --password
|
19
|
+
-p, --password=PASSWORD Password. Ask password if not given.
|
20
20
|
```
|
21
21
|
|
22
22
|
## Examples
|
data/lib/ssh-copy-id.rb
CHANGED
@@ -65,7 +65,7 @@ module SSHCopyID
|
|
65
65
|
end
|
66
66
|
|
67
67
|
host, port = host.split(':')
|
68
|
-
Net::SSH.start(host, user, :port => port, :password => password) do |ssh|
|
68
|
+
Net::SSH.start(host, user, :port => port || 22, :password => password) do |ssh|
|
69
69
|
result = ssh.exec!(yield identity)
|
70
70
|
output.puts result
|
71
71
|
end
|
@@ -90,7 +90,7 @@ module SSHCopyID
|
|
90
90
|
options[:username] = v
|
91
91
|
end
|
92
92
|
|
93
|
-
opts.on('-p', '--password
|
93
|
+
opts.on('-p', '--password=PASSWORD', 'Password. Ask password if not given.') do |v|
|
94
94
|
options[:password] = v
|
95
95
|
end
|
96
96
|
|
data/lib/ssh-copy-id/version.rb
CHANGED
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssh-copy-id.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Junegunn Choi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: net-ssh
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '2.6'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '2.6'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: highline
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 1.6.15
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 1.6.15
|
46
41
|
description: ssh-copy-id in Ruby. Supports copying to multiple servers.
|
@@ -52,7 +47,7 @@ executables:
|
|
52
47
|
extensions: []
|
53
48
|
extra_rdoc_files: []
|
54
49
|
files:
|
55
|
-
- .gitignore
|
50
|
+
- ".gitignore"
|
56
51
|
- Gemfile
|
57
52
|
- LICENSE.txt
|
58
53
|
- README.md
|
@@ -65,27 +60,26 @@ files:
|
|
65
60
|
- test/bin_helper.rb
|
66
61
|
homepage: https://github.com/junegunn/ssh-copy-id.rb
|
67
62
|
licenses: []
|
63
|
+
metadata: {}
|
68
64
|
post_install_message:
|
69
65
|
rdoc_options: []
|
70
66
|
require_paths:
|
71
67
|
- lib
|
72
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
69
|
requirements:
|
75
|
-
- -
|
70
|
+
- - ">="
|
76
71
|
- !ruby/object:Gem::Version
|
77
72
|
version: '0'
|
78
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
74
|
requirements:
|
81
|
-
- -
|
75
|
+
- - ">="
|
82
76
|
- !ruby/object:Gem::Version
|
83
77
|
version: '0'
|
84
78
|
requirements: []
|
85
79
|
rubyforge_project:
|
86
|
-
rubygems_version:
|
80
|
+
rubygems_version: 2.5.2
|
87
81
|
signing_key:
|
88
|
-
specification_version:
|
82
|
+
specification_version: 4
|
89
83
|
summary: ssh-copy-id in Ruby. Supports copying to multiple servers.
|
90
84
|
test_files:
|
91
85
|
- test/bin_helper.rb
|