lib/percheron/actions/build.rb in percheron-0.6.1 vs lib/percheron/actions/build.rb in percheron-0.6.2

- old
+ new

@@ -27,20 +27,19 @@ } end def build! in_working_directory(base_dir) do - execute_pre_build_scripts! - + execute_pre_build_scripts! unless container.pre_build_scripts.empty? $logger.info "Building '#{container.image_name}'" Docker::Image.build_from_dir(base_dir, build_opts) do |out| $logger.debug '%s' % [ out.strip ] end end end def execute_pre_build_scripts! - Exec.new(container, container.dependant_containers.values, container.pre_build_scripts, 'PRE build').execute! + ExecLocal.new(container, container.pre_build_scripts, 'PRE build').execute! end end end end