producer-stdlib 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/producer/stdlib/ssh.rb +1 -2
- data/lib/producer/stdlib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12668879dd856f64bc93fbd6da0e6052e864ac3a
|
4
|
+
data.tar.gz: 269b27e52519a682a76bd0ae188a03150f3012a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad2be9732b1b07866e1f0791c1989951c2706d55dbfc4f81ec9649459e395772e3ee8837ce27fb962150b6b23b5d855da21f312a30d89895ef95618a7830c6b2
|
7
|
+
data.tar.gz: e35a30d4052332c235472304933c48629b5605a92525c167b12fe85f99d36ef38e6d9d98e56f4074d3287a4d4981b3d46910580e8eb7d87cfe6c6b76752ddb67
|
data/lib/producer/stdlib/ssh.rb
CHANGED
@@ -15,8 +15,7 @@ module Producer
|
|
15
15
|
STDLib.define_macro :ssh_copy_id do |path = SSH_AUTHORIZED_KEYS_PATH|
|
16
16
|
condition { no_file? path }
|
17
17
|
|
18
|
-
|
19
|
-
if !!condition
|
18
|
+
if condition_met?
|
20
19
|
agent = Net::SSH::Authentication::Agent.connect
|
21
20
|
choices = agent.identities.map { |e| [e, e.comment] }
|
22
21
|
key = ask 'Which key do you want to copy?', choices
|