Sha256: a80ab18ad205c9a242773f3315a957d061c3ae03a16fb26d5fc096d6363ee3ed

Contents?: true

Size: 274 Bytes

Versions: 8

Compression:

Stored size: 274 Bytes

Contents

require 'rubygems'
require 'hashie/mash'

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

    def started?
      output.kind_of?(String) && output.length > 0
    end

    def finished?
      exit_status != nil
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
buildbox-0.3 lib/buildbox/build.rb
buildbox-0.2.3 lib/buildbox/build.rb
buildbox-0.2.2 lib/buildbox/build.rb
buildbox-0.2.1 lib/buildbox/build.rb
buildbox-0.2 lib/buildbox/build.rb
buildbox-0.1.4 lib/buildbox/build.rb
buildbox-0.1.1 lib/buildbox/build.rb
buildbox-0.1 lib/buildbox/build.rb