Sha256: ba925733139d4004c033afe36b235c5d36fd1b597c9abe23ebe05150d468bfcf

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 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
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bait-0.5.11 lib/bait/integrator.rb
bait-0.5.10 lib/bait/integrator.rb
bait-0.5.9 lib/bait/integrator.rb