Sha256: 47d9f2b5e3a7a5f7686acc3eedb523c6e4cb893b6bc8e5039f78bf08e3b775a3

Contents?: true

Size: 284 Bytes

Versions: 7

Compression:

Stored size: 284 Bytes

Contents

require 'hashie/mash'

module Buildbox
  class Build < Hashie::Mash
    def success?
      exit_status == 0
    end

    def cancelling?
      cancel_started == true
    end

    def started?
      !started_at.nil?
    end

    def finished?
      !finished_at.nil?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
buildbox-0.6.2 lib/buildbox/build.rb
buildbox-0.6.1 lib/buildbox/build.rb
buildbox-0.6 lib/buildbox/build.rb
buildbox-0.6.beta3 lib/buildbox/build.rb
buildbox-0.6.beta2 lib/buildbox/build.rb
buildbox-0.6.beta1 lib/buildbox/build.rb
buildbox-0.5 lib/buildbox/build.rb