lib/percheron/actions/build.rb in percheron-0.6.3 vs lib/percheron/actions/build.rb in percheron-0.6.4
- old
+ new
@@ -8,12 +8,13 @@
@container = container
@nocache = nocache
end
def execute!
- build!
- container
+ results = []
+ results << build!
+ results.compact.empty? ? nil : container
end
private
attr_reader :container, :nocache
@@ -28,10 +29,10 @@
end
def build!
in_working_directory(base_dir) do
execute_pre_build_scripts! unless container.pre_build_scripts.empty?
- $logger.info "Building '#{container.image_name}'"
+ $logger.info "Building '#{container.image_name}' image"
Docker::Image.build_from_dir(base_dir, build_opts) do |out|
$logger.debug '%s' % [ out.strip ]
end
end
end