luban 0.7.7 → 0.7.8

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: 5546cfa5d73a014152bd5bd7976308d1c76b7b2b
4
- data.tar.gz: 97f680b036efb2cd730657570249f2039d18a507
3
+ metadata.gz: 93ecbda71bada5b128218f57976e2e8b9d1d9201
4
+ data.tar.gz: aaf09dbbd997fb09063cf17066ad9d98cfd8f785
5
5
  SHA512:
6
- metadata.gz: f04d10b3b45fb86fd0f3d6f0210b2a9ed6c20da71da97ee614d5039fd01daec2102ba3cef672d391c75b39f5006b0ae1f79a0577e7ed376b69692d699c79faf2
7
- data.tar.gz: a9343ab5e0cbeccf9404f6850267dd7849b19b27ee8cc260609ab16465b0d06a749d602386a17924244dd21d1a568fc754f1e47de9d77b69a602690642b85744
6
+ metadata.gz: 5370c3b1c9d1d3ec4c837e70c9e487edfa7db5a4a48af13fe51af60a2250af2524c8b375fb93d5701b4d44f44f366dd0dc76d26b6717aa37f0c8bc3b726deef7
7
+ data.tar.gz: 05ddf1e4d27d6fcf6ecaa93af51beee45991b58f40ad39dc324dccca124309b4b16cfababa0eaac1dbfbac3456fcb8cb267110b50a26272b812758cc05711075
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.7.8 (Aug 31, 2016)
4
+
5
+ Minor enhancements:
6
+ * Refactored to use #profile_name to define the name of the profile folder for applications and services to avoid profile collision between applications and services.
7
+ * Cleanedup leftover from last install if any
8
+
3
9
  ## Version 0.7.7 (Aug 31, 2016)
4
10
 
5
11
  Minor enhancements:
@@ -26,9 +26,7 @@ module Luban
26
26
  @package_bin_path ||= package_path(package_name).join('bin')
27
27
  end
28
28
 
29
- def service_entry
30
- @service_entry ||= "#{env_name.gsub('/', '.')}.app"
31
- end
29
+ def profile_name; 'app'; end
32
30
 
33
31
  def release_tag; task.opts.release[:tag]; end
34
32
 
@@ -227,6 +227,7 @@ module Luban
227
227
  end
228
228
 
229
229
  def install!
230
+ cleanup_build! # Cleanup leftover from last install if any
230
231
  upload_package
231
232
  uncompress_package
232
233
  build_package
@@ -5,17 +5,17 @@ module Luban
5
5
  module Base
6
6
  def stage_profile_path
7
7
  @stage_profile_path ||=
8
- config_finder[:application].stage_profile_path.join(service_name)
8
+ config_finder[:application].stage_profile_path.join(profile_name)
9
9
  end
10
10
 
11
11
  def profile_templates_path
12
12
  @profile_templates_path ||=
13
- config_finder[:application].profile_templates_path.join(service_name)
13
+ config_finder[:application].profile_templates_path.join(profile_name)
14
14
  end
15
15
 
16
16
  def stage_profile_templates_path
17
17
  @stage_profile_templates_path ||=
18
- config_finder[:application].stage_profile_templates_path.join(service_name)
18
+ config_finder[:application].stage_profile_templates_path.join(profile_name)
19
19
  end
20
20
 
21
21
  def profile_templates(format: "erb")
@@ -75,7 +75,7 @@ module Luban
75
75
  profile_file = stage_profile_path.join(template_file).sub_ext('')
76
76
  assure_dirs(profile_file.dirname)
77
77
  upload_by_template(file_to_upload: profile_file,
78
- template_file: find_template_file(File.join(service_name, template_file)),
78
+ template_file: find_template_file(File.join(profile_name, template_file)),
79
79
  auto_revision: true)
80
80
  end
81
81
 
@@ -15,12 +15,14 @@ module Luban
15
15
  define_method("service_#{method}") { send("target_#{method}") }
16
16
  end
17
17
 
18
+ def profile_name; service_name; end
19
+
18
20
  def service_entry
19
- @service_entry ||= "#{env_name.gsub('/', '.')}.#{service_name}"
21
+ @service_entry ||= "#{env_name.gsub('/', '.')}.#{profile_name}"
20
22
  end
21
23
 
22
24
  def profile_path
23
- @profile_path ||= shared_path.join('profile', service_name)
25
+ @profile_path ||= shared_path.join('profile', profile_name)
24
26
  end
25
27
 
26
28
  def log_path
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.7.7"
3
+ VERSION = "0.7.8"
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.7.7
4
+ version: 0.7.8
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-08-30 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli