Sha256: aa05d1c58f66a43f7b429ac30269d532d471e0b5eee9607dd317f0216c3b9cdd

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

require 'rubygems'
require 'hashie/mash'

module Buildbox
  class Build < Hashie::Mash
    def success?
      exit_status == 0
    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

1 entries across 1 versions & 1 rubygems

Version Path
buildbox-0.3.2 lib/buildbox/build.rb