bricky 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/etc/bricks/bundle/builder +1 -1
- data/lib/bricky/commands/builder.rb +3 -2
- data/lib/bricky/executor.rb +18 -5
- data/lib/bricky/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDIwZmI1NWIzZWI4NGEyZWEwZmM2ZjlmNDA0YWFkZjhhNjBmODQ5Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWQ0ODMzODljMWMxNzFkYTA5NmQzZjVkNGIwZjkwNjNlNGU2NWM4Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzQzNDM3MDkwODBhNDQyYjJlZmQ4OTk0MGI0ZTM5MWY2OTI2NmQ5MTc3ODE4
|
10
|
+
NDZlYmU1MmU3NTY3ODZiZmY4NmRmZjk2ZDA1ZmZhZDFlZDVhMDJiMzk2MWI1
|
11
|
+
OWVmMWY2N2E0MGZmNzhjODhlNmNmNzUxYzQ3NWYxNGI5YjkzZTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjcwODg2OGMxODNhYWExZTgzZjMwNGYzYmNhMzUxNzNiNzllNTQ3NDA1OWZk
|
14
|
+
ZDcwYzljNDMzMDA0MjBjMGI1MDhmMzZkYzYzNjc2ZjZhOGZkYzMxOWY4ZWU1
|
15
|
+
N2MwNDllODQ2NTFjZTQzZGY4MWQ5ODMxYjdiNDcyMGIzYzA1ODY=
|
data/etc/bricks/bundle/builder
CHANGED
@@ -8,7 +8,7 @@ bundler() {
|
|
8
8
|
info 'Vendor project with Bundler'
|
9
9
|
pushd /opt/workspace/source
|
10
10
|
command -v bundle > /dev/null 2>&1 || gem install --no-ri --no-rdoc bundler
|
11
|
-
bundle install --deployment --without=$BRICKS_BUNDLE_WITHOUT
|
11
|
+
bundle install --deployment --jobs 5 --without=$BRICKS_BUNDLE_WITHOUT
|
12
12
|
popd
|
13
13
|
}
|
14
14
|
|
@@ -14,8 +14,9 @@ module Bricky
|
|
14
14
|
attach_shims
|
15
15
|
code = command(images)
|
16
16
|
logger.debug format(code)
|
17
|
-
|
18
|
-
|
17
|
+
|
18
|
+
# TODO: remove nil from executor popen
|
19
|
+
unless Bricky::Executor.popen(nil, code)
|
19
20
|
logger.failure '~~~~~~~~~~~ Problems building image ~~~~~~~~~~~'
|
20
21
|
return false
|
21
22
|
end
|
data/lib/bricky/executor.rb
CHANGED
@@ -1,14 +1,27 @@
|
|
1
|
-
require "
|
1
|
+
require "pty"
|
2
2
|
|
3
3
|
module Bricky
|
4
4
|
module Executor
|
5
5
|
extend self
|
6
6
|
|
7
7
|
def popen(label, command)
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
PTY.spawn(command) do |input, output, wait|
|
9
|
+
begin
|
10
|
+
# TODO: Refactory
|
11
|
+
input.each do |line|
|
12
|
+
if label.nil?
|
13
|
+
logger.info line.chomp
|
14
|
+
else
|
15
|
+
logger.normal label, ": #{line.chomp}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
rescue Errno::EIO
|
19
|
+
ensure
|
20
|
+
Process.wait wait
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
$?.exitstatus.to_i.eql?(0)
|
12
25
|
end
|
13
26
|
|
14
27
|
def system(command)
|
data/lib/bricky/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bricky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andrerocker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|