luban 0.7.7 → 0.7.8
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/luban/deployment/cli/application/worker.rb +1 -3
- data/lib/luban/deployment/cli/package/installer/install.rb +1 -0
- data/lib/luban/deployment/cli/service/configurator.rb +4 -4
- data/lib/luban/deployment/cli/service/worker.rb +4 -2
- data/lib/luban/deployment/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93ecbda71bada5b128218f57976e2e8b9d1d9201
|
|
4
|
+
data.tar.gz: aaf09dbbd997fb09063cf17066ad9d98cfd8f785
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
|
@@ -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(
|
|
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(
|
|
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(
|
|
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(
|
|
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('/', '.')}.#{
|
|
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',
|
|
25
|
+
@profile_path ||= shared_path.join('profile', profile_name)
|
|
24
26
|
end
|
|
25
27
|
|
|
26
28
|
def log_path
|
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.
|
|
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-
|
|
11
|
+
date: 2016-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: luban-cli
|