luban 0.10.10 → 0.10.11

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: ec92465dae9a1e0e3db3d76bdf6d0a015c6d62d0
4
- data.tar.gz: 8812d5fe6d6751f6aeb994249dafd0e1f9a3bef5
3
+ metadata.gz: 15735d9866abfcc5251bd710d1ebfc903f551633
4
+ data.tar.gz: 799e57170781788c026441f52622793697e298dc
5
5
  SHA512:
6
- metadata.gz: cbdea8891956ed58e7c1c2729968cae060e793e6a8e8fd28b7b5d44f47341595df9a0200b617d6968f783acc1a53e1c5bc83be0f353877d71b28ac513274d576
7
- data.tar.gz: 5bfcc4fed54770377c773cc39867906ce470917d6fd65447ab12320f1d3a87286c35566696560030f9b2eeb6046bd90afa1c6df980b5d9e29f0226ee1234ccd4
6
+ metadata.gz: b895b3455c3f73c2e85dafb5c7da126cb7f37efb51eb8436e85d0a59ea0df102eb7d65d2b5467f4793cc139c8689dd23a9cafcac7cf02a511b2b799605368464
7
+ data.tar.gz: 32f9b991d2cdabefad3e17732dbd83f8abd6c209204d83e909eb6004854becb5f765e72921fbebed65c39985e03b968827166eb2dc2b525aa03c5d802f91f288
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.10.11 (Dec 01, 2016)
4
+
5
+ Minor enhancements:
6
+ * Enforced re-creation of binstubs/symlinks for services after profile deployment
7
+ * Updated decriptions for binstubs to include symlinks for the sake of clarity
8
+
3
9
  ## Version 0.10.10 (Nov 29, 2016)
4
10
 
5
11
  Minor enhancements:
@@ -396,7 +396,6 @@ module Luban
396
396
  end
397
397
  end
398
398
  end
399
- alias_method :deploy_profile!, :deploy_release!
400
399
  dispatch_task :package_release!, to: :repository, as: :package, locally: true
401
400
  dispatch_task :publish_release!, to: :publisher, as: :publish
402
401
 
@@ -410,6 +409,11 @@ module Luban
410
409
  dispatch_task :deprecate_packaged_release!, to: :repository, as: :deprecate, locally: true
411
410
  dispatch_task :deprecate_published_release!, to: :publisher, as: :deprecate
412
411
 
412
+ def deploy_profile!(args:, opts:)
413
+ deploy_release!(args: args, opts: opts)
414
+ services.each_value { |s| s.binstubs(args: args, opts: opts) }
415
+ end
416
+
413
417
  def deploy_cronjobs(args:, opts:)
414
418
  opts = opts.merge(version: current_app) if has_source?
415
419
  deploy_cronjobs!(args: args, opts: opts)
@@ -45,8 +45,8 @@ module Luban
45
45
  end
46
46
 
47
47
  task :binstubs do
48
- desc "Update binstubs for required packages"
49
- switch :force, "Force to update binstubs", short: :f
48
+ desc "Update binstubs/symlinks for required packages"
49
+ switch :force, "Force to update binstubs/symlinks", short: :f
50
50
  action! :binstubs
51
51
  end
52
52
 
@@ -140,7 +140,7 @@ module Luban
140
140
  if current?
141
141
  if installed?
142
142
  update_binstubs!
143
- update_result "Updated #{package_name} binstubs with current version #{package_version}"
143
+ update_result "Updated #{package_name} binstubs/symlinks with current version #{package_version}"
144
144
  else
145
145
  update_result "Skipped! #{package_full_name} is NOT installed yet. Please install it first.",
146
146
  status: :failed, level: :error
@@ -149,7 +149,7 @@ module Luban
149
149
  if current_symlinked?
150
150
  remove_binstubs!
151
151
  remove_symlinks!
152
- update_result "Removed #{package_name} binstubs with version #{package_version}. " +
152
+ update_result "Removed #{package_name} binstubs/symlinks with version #{package_version}. " +
153
153
  "Current version of #{package_name} is NOT specified.",
154
154
  level: :warn
155
155
  end
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.10.10"
3
+ VERSION = "0.10.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.10
4
+ version: 0.10.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-29 00:00:00.000000000 Z
11
+ date: 2016-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli