construi 0.25.0 → 0.27.0
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.
- data/construi.yml +6 -1
- data/lib/construi/container.rb +4 -5
- data/lib/construi/version.rb +1 -1
- data/lib/construi.rb +1 -1
- metadata +3 -3
data/construi.yml
CHANGED
@@ -12,6 +12,10 @@ targets:
|
|
12
12
|
- bundle install --path=vendor/bundle
|
13
13
|
- bundle exec rake spec
|
14
14
|
|
15
|
+
install:
|
16
|
+
- bundle install --path=vendor/bundle
|
17
|
+
- bundle exec rake install
|
18
|
+
|
15
19
|
release:
|
16
20
|
- git config user.name lstephen
|
17
21
|
- git config user.email levi.stephen@gmail.com
|
@@ -28,7 +32,8 @@ targets:
|
|
28
32
|
- git checkout develop
|
29
33
|
- git pull --rebase
|
30
34
|
- bundle install --path vendor/bundle
|
31
|
-
- bundle exec gem bump --version minor
|
35
|
+
- bundle exec gem bump --version minor
|
36
|
+
- git push origin
|
32
37
|
|
33
38
|
deploy:
|
34
39
|
- git config user.name lstephen
|
data/lib/construi/container.rb
CHANGED
@@ -14,9 +14,9 @@ module Construi
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def attach_stdout
|
17
|
-
@container
|
18
|
-
|
19
|
-
|
17
|
+
@container.attach(:stream => true, :logs => true) { |s, c| puts c; $stdout.flush }
|
18
|
+
rescue Docker::Error::TimeoutError
|
19
|
+
puts 'Failed to attached to stdout'
|
20
20
|
end
|
21
21
|
|
22
22
|
def commit
|
@@ -24,9 +24,8 @@ module Construi
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def run
|
27
|
-
attach_stdout
|
28
|
-
|
29
27
|
@container.start
|
28
|
+
attach_stdout
|
30
29
|
status_code = @container.wait['StatusCode']
|
31
30
|
|
32
31
|
raise RunError.new 'Cmd returned status code: #{status_code}' unless status_code == 0
|
data/lib/construi/version.rb
CHANGED
data/lib/construi.rb
CHANGED
@@ -31,7 +31,7 @@ module Construi
|
|
31
31
|
commands = targets.map { |t| @config.target(t).commands }.flatten
|
32
32
|
|
33
33
|
final_image = commands.reduce(IntermediateImage.seed(initial_image)) do |image, command|
|
34
|
-
puts "
|
34
|
+
puts " > #{command}"
|
35
35
|
image.run(command, @config.env)
|
36
36
|
end
|
37
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: construi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
163
|
version: '0'
|
164
164
|
segments:
|
165
165
|
- 0
|
166
|
-
hash:
|
166
|
+
hash: 2697549208150124815
|
167
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
168
|
none: false
|
169
169
|
requirements:
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
segments:
|
174
174
|
- 0
|
175
|
-
hash:
|
175
|
+
hash: 2697549208150124815
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
178
|
rubygems_version: 1.8.23.2
|