Sha256: eec3bebfadded6133db9c8494fd816400730508a4d53e62f3ea0bab447deca07

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

require 'bait'
require 'bait/build'
require 'git'
require 'open3'
require 'sucker_punch'

module Bait
  class Integrator
    include SuckerPunch::Job
    def perform(build_id)
      if @build = ::Bait::Build.find(build_id)
        @build.clone!
        if @build.cloned?
          @build.phases.each do |script|
            @build.enter_phase script
          end
          Bait.console.puts @build.summary
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bait-0.5.13 lib/bait/integrator.rb
bait-0.5.12 lib/bait/integrator.rb