luban 0.9.1 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9701a06e113310215db8b94c6442f2cf7ee24aa3
4
- data.tar.gz: 12c5e3b3e7398ec05865acccc5eb573e5f0f5e83
3
+ metadata.gz: dca8fcb876590469dc26cde8d96ac98005d359ba
4
+ data.tar.gz: 09eb04a2e533f65e76eea153a7c58756060161c4
5
5
  SHA512:
6
- metadata.gz: e7f2c996862d99601820789029bdfa25d960ca6a71528e23dd65fc8f5cfa9d572a1fd45b2b8edc14773088f377569f389c0aad8168e6e9324f9606c1a9f66afd
7
- data.tar.gz: 4a845d487303b877c5a10af520d0886300fffaac6f5b12acd249b11f15a78ea578c8697e6c56e8154b53357781d1fa2dc4cbdb08aae2648ecb67a00fb810954f
6
+ metadata.gz: 38a19f7fee773f5ce14f375cc204a96d1e8c186bd7c2ceb931104471d2f8bb7a4e65591850760671bd75069f2ed37aa2ecc5ac92cf1cb5229a80f38247552478
7
+ data.tar.gz: 4d1c3ee0509c66fb65fed17069ae622ae925ec76e0a17b55000adf0e9948368876914beaaef237c7e9b05c175425d373bfef844802f515742dfbc8ff14748e12
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.9.2 (Oct 13, 2016)
4
+
5
+ Bug fixes:
6
+ * Checked nullity for #scm_role and #archive_role before setup promptless SSH authentication
7
+
3
8
  ## Version 0.9.1 (Oct 13, 2016)
4
9
 
5
10
  New features:
@@ -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
- opts = opts.merge(roles: [scm_role, archive_role])
134
- promptless_authen!(args: args, opts: opts)
135
- opts = opts.merge(roles: [archive_role], public_keys: public_keys)
136
- promptless_authen!(args: args, opts: opts)
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
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei