binpkgbot 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/binpkgbot/container.rb +5 -4
- data/lib/binpkgbot/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: cb067c36fcfd834d38d7eaaa41d470136c8f17a2
|
4
|
+
data.tar.gz: 24fc2fbf640a0ebd6cec8e4124f18ebe6395e2de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4152a3d6675b5740e94229fe08980cec65488e1646f6183201e20e6d489d5b8cc80be715b7794dfe54996a883c46edd7d7864cfd25487875d055f76aa27d8d6
|
7
|
+
data.tar.gz: 8c913d0f9fe7aa5747a06196b15a4fd2ea628cf9e67ce47bebf6d531b6d4d8cd525e1d63cc659079c851e9727ad71630bf888605b3be3da9f3911f94246a108f
|
data/lib/binpkgbot/container.rb
CHANGED
@@ -43,11 +43,11 @@ cp -pr #{COPY_TMPDIR}-#{copy[:id]} #{copy[:to].shellescape}
|
|
43
43
|
|
44
44
|
def binds
|
45
45
|
@binds + \
|
46
|
-
(@config&.binds || []) + \
|
46
|
+
normalize_binds(@config&.binds || []) + \
|
47
47
|
@copies.map { |copy| {from: copy[:from], to: "/#{COPY_TMPDIR}-#{copy[:id]}", writable: false} } + \
|
48
48
|
[
|
49
49
|
{from: workdir, to: WORKDIR, writable: true},
|
50
|
-
{from: SHAREDIR_SRC, to: SHAREDIR, writable:
|
50
|
+
{from: SHAREDIR_SRC, to: SHAREDIR, writable: false},
|
51
51
|
]
|
52
52
|
end
|
53
53
|
|
@@ -67,6 +67,7 @@ cp -pr #{COPY_TMPDIR}-#{copy[:id]} #{copy[:to].shellescape}
|
|
67
67
|
r,w = IO.pipe
|
68
68
|
w.puts script
|
69
69
|
pid = spawn(*command_line, in: r)
|
70
|
+
puts "--> #{command_line.shelljoin}"
|
70
71
|
r.close
|
71
72
|
w.close
|
72
73
|
_, status = Process.waitpid2(pid)
|
@@ -83,9 +84,9 @@ cp -pr #{COPY_TMPDIR}-#{copy[:id]} #{copy[:to].shellescape}
|
|
83
84
|
case
|
84
85
|
when bind.kind_of?(String)
|
85
86
|
{from: bind, to: bind, writable: false}
|
86
|
-
when bind[:ro]
|
87
|
+
when bind.kind_of?(Hash) && bind[:ro]
|
87
88
|
{from: bind[:ro], to: bind[:ro], writable: false}
|
88
|
-
when bind[:rw]
|
89
|
+
when bind.kind_of?(Hash) && bind[:rw]
|
89
90
|
{from: bind[:rw], to: bind[:rw], writable: true}
|
90
91
|
when bind.kind_of?(Hash)
|
91
92
|
bind
|
data/lib/binpkgbot/version.rb
CHANGED