luban 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/luban/deployment/cli/application/base.rb +10 -4
- data/lib/luban/deployment/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: dca8fcb876590469dc26cde8d96ac98005d359ba
|
4
|
+
data.tar.gz: 09eb04a2e533f65e76eea153a7c58756060161c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38a19f7fee773f5ce14f375cc204a96d1e8c186bd7c2ceb931104471d2f8bb7a4e65591850760671bd75069f2ed37aa2ecc5ac92cf1cb5229a80f38247552478
|
7
|
+
data.tar.gz: 4d1c3ee0509c66fb65fed17069ae622ae925ec76e0a17b55000adf0e9948368876914beaaef237c7e9b05c175425d373bfef844802f515742dfbc8ff14748e12
|
data/CHANGELOG.md
CHANGED
@@ -130,10 +130,16 @@ module Luban
|
|
130
130
|
def promptless_authen(args:, opts:)
|
131
131
|
opts = opts.merge(app: self, public_keys: Array(public_key!(args: args, opts: opts)))
|
132
132
|
public_keys = promptless_authen!(args: args, opts: opts).collect { |r| r[:public_key] }
|
133
|
-
|
134
|
-
|
135
|
-
opts
|
136
|
-
|
133
|
+
|
134
|
+
opts[:roles] = []
|
135
|
+
opts[:roles] << scm_role unless scm_role.nil?
|
136
|
+
opts[:roles] << archive_role unless archive_role.nil?
|
137
|
+
promptless_authen!(args: args, opts: opts) unless opts[:roles].empty?
|
138
|
+
|
139
|
+
unless archive_role.nil?
|
140
|
+
opts = opts.merge(roles: [archive_role], public_keys: public_keys)
|
141
|
+
promptless_authen!(args: args, opts: opts)
|
142
|
+
end
|
137
143
|
end
|
138
144
|
dispatch_task :public_key!, to: :authenticator, as: :public_key, locally: true
|
139
145
|
dispatch_task :promptless_authen!, to: :authenticator, as: :promptless_authen
|