rexer 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 +4 -4
- data/lib/rexer/extension/plugin.rb +8 -7
- data/lib/rexer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1db7d4adf66ad78aae372f512810ade8001893feadc4233da362ad2bffaa5f58
|
4
|
+
data.tar.gz: a5b03b4d24061a734c2525b1b6251c8e905c4055b7ab7c7fc42a8c6edb5ad13c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb41f315f2e2881f08a6e8831df01809ac9a36b10734289201d430bdf9bba91d13fe02fc64e7c730e4a268442cadfbe5bba1e1057f0f0967f41e250fb3e5b9d7
|
7
|
+
data.tar.gz: 806b8384297143c5d1e27b44a2a79106203b87133c41233e85c05510da0e590b9bd81b9cd96b6199bab09c2f4a45d1aa28e1174b4894146b7fcbf87afbe3098d
|
@@ -39,14 +39,14 @@ module Rexer
|
|
39
39
|
return unless needs_db_migration?
|
40
40
|
|
41
41
|
envs = {"NAME" => name.to_s}.merge(extra_envs)
|
42
|
-
cmds =
|
42
|
+
cmds = build_cmd("bundle", "exec", "rake", Rexer.verbosity.debug? ? nil : "-q", "redmine:plugins:migrate", envs:)
|
43
43
|
|
44
|
-
broadcast(:processing, "Execute #{cmds}
|
44
|
+
broadcast(:processing, "Execute #{cmds}")
|
45
45
|
|
46
46
|
if Rexer.verbosity.debug?
|
47
|
-
system(
|
47
|
+
system(cmds, exception: true)
|
48
48
|
else
|
49
|
-
_, error, status = Open3.capture3(
|
49
|
+
_, error, status = Open3.capture3(cmds)
|
50
50
|
raise error unless status.success?
|
51
51
|
end
|
52
52
|
end
|
@@ -55,8 +55,9 @@ module Rexer
|
|
55
55
|
@source ||= Source.from_definition(definition.source)
|
56
56
|
end
|
57
57
|
|
58
|
-
def
|
59
|
-
[
|
58
|
+
def build_cmd(*command, envs: {})
|
59
|
+
envs_str = envs.map { [_1, _2].join("=") }
|
60
|
+
[Rexer.config.command_prefix, *command, *envs_str].compact.join(" ")
|
60
61
|
end
|
61
62
|
end
|
62
63
|
|
@@ -86,7 +87,7 @@ module Rexer
|
|
86
87
|
def run_bundle_install
|
87
88
|
return unless plugin_dir.join("Gemfile").exist?
|
88
89
|
|
89
|
-
cmds =
|
90
|
+
cmds = build_cmd("bundle", "install", Rexer.verbosity.debug? ? nil : "--quiet")
|
90
91
|
|
91
92
|
broadcast(:processing, "Execute #{cmds}")
|
92
93
|
|
data/lib/rexer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katsuya Hidaka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|