luban 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/luban/deployment/cli/application/base.rb +1 -1
- data/lib/luban/deployment/cli/application/worker.rb +0 -13
- data/lib/luban/deployment/version.rb +1 -1
- data/lib/luban/deployment/worker/base.rb +2 -0
- data/lib/luban/deployment/worker/paths.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ba132c269c2bb4ca93ad0e2c6e4e7d89c70416d
|
4
|
+
data.tar.gz: 955c205da9eb975aaabf79e01d3f28aec45f57d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad4b1a58f113317d23b2b344126814b0d917cf57d0cc5b89f0ebc1a241631032e2137a33bd72c627973991f8e845a60a9831ae243bf1d7eea8c9f073804622ec
|
7
|
+
data.tar.gz: b90cd96e4493c222a5538b03077bd8f6fdaa56b95234aac7f06e23b6146280c5351448ac3da3a293799d62da1cc2aee6682b19a58eb5f718b21c89313fc96a9a
|
data/CHANGELOG.md
CHANGED
@@ -77,7 +77,7 @@ module Luban
|
|
77
77
|
else
|
78
78
|
command(name, base: Luban::Deployment::Package::Base.package_class(name))
|
79
79
|
end
|
80
|
-
pkg.update_package_options(version, opts)
|
80
|
+
pkg.update_package_options(version, opts.merge(packages: packages))
|
81
81
|
services[name] = pkg if pkg.is_a?(Luban::Deployment::Service::Base)
|
82
82
|
packages[name] = pkg
|
83
83
|
end
|
@@ -13,19 +13,6 @@ module Luban
|
|
13
13
|
define_method("application_#{method}") { send("target_#{method}") }
|
14
14
|
end
|
15
15
|
|
16
|
-
def packages; task.opts.packages; end
|
17
|
-
|
18
|
-
def package_version(package_name); packages[package_name.to_sym].current_version; end
|
19
|
-
|
20
|
-
def package_path(package_name)
|
21
|
-
@package_path ||= luban_install_path.join('pkg', package_name.to_s, 'versions',
|
22
|
-
package_version(package_name))
|
23
|
-
end
|
24
|
-
|
25
|
-
def package_bin_path(package_name)
|
26
|
-
@package_bin_path ||= package_path(package_name).join('bin')
|
27
|
-
end
|
28
|
-
|
29
16
|
def profile_name; 'app'; end
|
30
17
|
|
31
18
|
def release_tag; task.opts.release[:tag]; end
|
@@ -36,6 +36,8 @@ module Luban
|
|
36
36
|
def target_major_version; task.opts.major_version || target_version; end
|
37
37
|
def target_patch_level; task.opts.patch_level || ''; end
|
38
38
|
|
39
|
+
def packages; task.opts.packages; end
|
40
|
+
|
39
41
|
def run
|
40
42
|
update_result(__return__: @run_blk ? run_with_block : run_with_command).to_h
|
41
43
|
end
|
@@ -76,6 +76,12 @@ module Luban
|
|
76
76
|
def luban_install_path
|
77
77
|
@luban_install_path ||= project_path.join('.luban')
|
78
78
|
end
|
79
|
+
|
80
|
+
def package_bin_path(package_name)
|
81
|
+
@package_bin_path ||=
|
82
|
+
luban_install_path.join('pkg', package_name.to_s, 'versions',
|
83
|
+
packages[package_name.to_sym].current_version, 'bin')
|
84
|
+
end
|
79
85
|
end
|
80
86
|
end
|
81
87
|
end
|