lib/integrity/builder.rb in foca-integrity-0.1.3 vs lib/integrity/builder.rb in foca-integrity-0.1.4

- old
+ new

@@ -11,11 +11,11 @@ @scm = SCM.new(@uri, @branch, export_directory) @build = Build.new(:project => project) end def build(commit) - Integrity.logger.info "Building #{commit} (#{@branch}) of #{@build.project.name} in #{export_directory} using #{scm_name}" + Integrity.log "Building #{commit} (#{@branch}) of #{@build.project.name} in #{export_directory} using #{scm_name}" @scm.with_revision(commit) { run_build_script } @build ensure @build.commit_identifier = @scm.commit_identifier(commit) @build.commit_metadata = @scm.commit_metadata(commit) @@ -36,10 +36,10 @@ def scm_name @scm.name end def run_build_script - Integrity.logger.info "Running `#{build_script}` in #{@scm.working_directory}" + Integrity.log "Running `#{build_script}` in #{@scm.working_directory}" IO.popen "(cd #{@scm.working_directory} && #{build_script}) 2>&1", "r" do |pipe| @build.output = pipe.read end @build.successful = $?.success?