Sha256: c2b43b4ac7151fc27e086aaa49e4c2853df060bb6f9c291a063df3b85be9ecf7

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

module Buildbox
  class Canceler
    def self.cancel(build)
      new(build).cancel
    end

    def initialize(build)
      @build = build
    end

    def cancel
      @build.cancel_started = true

      # Kill that damn process, yo!
      Process.kill 'INT', @build.pid
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buildbox-0.3.3 lib/buildbox/canceler.rb