Sha256: 4a5b122a25976cd230cede50fbb55e552a921c8dc5375f9ff1ccc56dd699f6fa

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

require 'rubygems'
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

2 entries across 2 versions & 1 rubygems

Version Path
buildbox-0.3.4 lib/buildbox/build.rb
buildbox-0.3.3 lib/buildbox/build.rb