Sha256: c9d93ac313c2a69fb0466e5814151fb3e0310a0256ebf617b47381d3152f4616

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 Bytes

Contents

module Shipit
  UnknownStatus = Struct.new(:commit) do
    def state
      'unknown'
    end
    alias_method :simple_state, :state

    def unknown?
      true
    end

    def pending?
      false
    end

    def success?
      false
    end

    def error?
      false
    end

    def failure?
      false
    end

    def group?
      false
    end

    def target_url
      nil
    end

    def description
      ''
    end

    def context
      'ci/unknown'
    end

    def to_partial_path
      'shipit/statuses/status'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shipit-engine-0.15.0 app/models/shipit/unknown_status.rb
shipit-engine-0.14.0 app/models/shipit/unknown_status.rb
shipit-engine-0.13.0 app/models/shipit/unknown_status.rb
shipit-engine-0.12.1 app/models/shipit/unknown_status.rb
shipit-engine-0.12.0 app/models/shipit/unknown_status.rb