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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0801aa5e0c95e55c17fac5c03454e7c9019cb663'
4
- data.tar.gz: 85137506468c94f84a5d91e1da6d328530d71936
3
+ metadata.gz: cb067c36fcfd834d38d7eaaa41d470136c8f17a2
4
+ data.tar.gz: 24fc2fbf640a0ebd6cec8e4124f18ebe6395e2de
5
5
  SHA512:
6
- metadata.gz: 4909f87e8087011cd94334fbd45dd1d0c6344a99a920146ad92a8f8a64dca76fea338a6056c20fbf5bc4b0ff10f444fa18de2d0c510a132c1ffcafe3418e87be
7
- data.tar.gz: f5599f934b8f74d34330ec1443823da752ce9d46e929cc474573aa5cd1a1f7cbd42bb43fcf489d50ba47b640310d774f75c6f368c813aa0b5699e6e71709f880
6
+ metadata.gz: c4152a3d6675b5740e94229fe08980cec65488e1646f6183201e20e6d489d5b8cc80be715b7794dfe54996a883c46edd7d7864cfd25487875d055f76aa27d8d6
7
+ data.tar.gz: 8c913d0f9fe7aa5747a06196b15a4fd2ea628cf9e67ce47bebf6d531b6d4d8cd525e1d63cc659079c851e9727ad71630bf888605b3be3da9f3911f94246a108f
@@ -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: true},
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
@@ -1,3 +1,3 @@
1
1
  module Binpkgbot
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binpkgbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorah Fukumori