dapp 0.7.13 → 0.7.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/en/common.yml +2 -0
- data/lib/dapp/project/system_shellout.rb +14 -4
- data/lib/dapp/version.rb +1 -1
- 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: 4ce2d9eae2b707e324a8fe198e8812da6342ced8
|
4
|
+
data.tar.gz: f2cfc51c7fc2aafc0372733f9ac2dbd53ca9d36f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a59386e6321d5dfc75498774ced2c066911b7b2ad34c5412effafcb167ade6f251460dbb3f5038659c4d9d0f7bb90e60ec0e65d3ac160d784d03668fd2e722a4
|
7
|
+
data.tar.gz: 24000f5eb37272682da2477cbda6eab34fe48bde926dbe1f1354dfca7500d78acbc3c4ae510416b6d8ee4d806f57dbc6348832d65b9cde750a16f80880d5d011
|
data/config/en/common.yml
CHANGED
@@ -10,6 +10,8 @@ en:
|
|
10
10
|
instructions: "instructions:"
|
11
11
|
container:
|
12
12
|
launched_command: "Launched command: '%{command}'"
|
13
|
+
system_shellout:
|
14
|
+
launched_command: "Launched system-shellout command: '%{command}'"
|
13
15
|
process:
|
14
16
|
artifact_copy: "copying artifact '%{name}'"
|
15
17
|
artifact_building: "building artifact '%{name}'"
|
@@ -6,10 +6,20 @@ module Dapp
|
|
6
6
|
|
7
7
|
def system_shellout(command, raise_error: false, **kwargs)
|
8
8
|
system_shellout_extra(volume: (git_path ? File.dirname(git_path) : path)) do
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
begin
|
10
|
+
if raise_error
|
11
|
+
shellout! _to_system_shellout_command(command), **kwargs
|
12
|
+
else
|
13
|
+
shellout _to_system_shellout_command(command), **kwargs
|
14
|
+
end
|
15
|
+
rescue Error::Shellout
|
16
|
+
log_warning(
|
17
|
+
desc: { code: :launched_command,
|
18
|
+
data: { command: _to_system_shellout_command(command) },
|
19
|
+
context: :system_shellout },
|
20
|
+
quiet: !log_verbose?
|
21
|
+
)
|
22
|
+
raise
|
13
23
|
end
|
14
24
|
end
|
15
25
|
end
|
data/lib/dapp/version.rb
CHANGED