luban 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1c840fa119a9368e8e98cae2dfc701d2f31ead8
4
- data.tar.gz: 10bc13a1c416506baae0a5aff9e88a17a61ee604
3
+ metadata.gz: 9701a06e113310215db8b94c6442f2cf7ee24aa3
4
+ data.tar.gz: 12c5e3b3e7398ec05865acccc5eb573e5f0f5e83
5
5
  SHA512:
6
- metadata.gz: 95ce838aecc0b93916935fc3469366826403599abcef453b8cada2b83063329eca02b7d0b25b0cbeb3e339a2cc5eb016f0f9e50c53947e64077ebfaf3d535718
7
- data.tar.gz: af1aae4d01bb04f54097738a7a23c8b184842895e1e67be8705b95e15e523cbc9f1ae49ddf80dab129a1bad6691e5f5d0a3feb138258a2ac49161548b5b59ff9
6
+ metadata.gz: e7f2c996862d99601820789029bdfa25d960ca6a71528e23dd65fc8f5cfa9d572a1fd45b2b8edc14773088f377569f389c0aad8168e6e9324f9606c1a9f66afd
7
+ data.tar.gz: 4a845d487303b877c5a10af520d0886300fffaac6f5b12acd249b11f15a78ea578c8697e6c56e8154b53357781d1fa2dc4cbdb08aae2648ecb67a00fb810954f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.9.1 (Oct 13, 2016)
4
+
5
+ New features:
6
+ * Setup password-less SSH connection to central archives server if it is provided
7
+ * From application servers to central archives server
8
+ * From deployment server to central archives server
9
+
10
+ Bug fixes:
11
+ * Ensure server set for a given role is updated when an existing server is assigned a new role
12
+
3
13
  ## Version 0.9.0 (Oct 12, 2016)
4
14
 
5
15
  New features:
@@ -129,7 +129,10 @@ module Luban
129
129
 
130
130
  def promptless_authen(args:, opts:)
131
131
  opts = opts.merge(app: self, public_keys: Array(public_key!(args: args, opts: opts)))
132
- opts[:roles] << scm_role unless scm_role.nil?
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)
133
136
  promptless_authen!(args: args, opts: opts)
134
137
  end
135
138
  dispatch_task :public_key!, to: :authenticator, as: :public_key, locally: true
@@ -33,11 +33,12 @@ module Luban
33
33
  server
34
34
  else
35
35
  all << new_server
36
- new_server.roles.each do |role|
36
+ new_server
37
+ end.tap do |s|
38
+ s.roles.each do |role|
37
39
  @servers[role] ||= []
38
40
  @servers[role] << new_server
39
41
  end
40
- new_server
41
42
  end
42
43
  end
43
44
 
@@ -119,6 +119,7 @@ module Luban
119
119
 
120
120
  parameter :application
121
121
  parameter :scm_role
122
+ parameter :archive_role
122
123
 
123
124
  def env_name
124
125
  @env_name ||= "#{stage}.#{project}/#{application}"
@@ -136,6 +137,7 @@ module Luban
136
137
 
137
138
  def set_default_application_parameters
138
139
  set_default :scm_role, :scm
140
+ set_default :archive_role, :archive
139
141
  setup_default_application_config_finder
140
142
  end
141
143
 
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
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.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei