Sha256: 45aca3752e2ff91ce11d0fb897a75e7d5ca35575422fa62ab295201db24492d2

Contents?: true

Size: 352 Bytes

Versions: 9

Compression:

Stored size: 352 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

    def namespace
      "#{project.team.id}/#{project.id}"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
buildbox-0.4.2 lib/buildbox/build.rb
buildbox-0.4.1 lib/buildbox/build.rb
buildbox-0.4 lib/buildbox/build.rb
buildbox-0.3.9.1 lib/buildbox/build.rb
buildbox-0.3.9 lib/buildbox/build.rb
buildbox-0.3.8 lib/buildbox/build.rb
buildbox-0.3.7 lib/buildbox/build.rb
buildbox-0.3.6 lib/buildbox/build.rb
buildbox-0.3.5 lib/buildbox/build.rb