Sha256: df477cac568b1302436caaea997337f5b5e4683df4f9a66434775e206fa2a96c

Contents?: true

Size: 473 Bytes

Versions: 7

Compression:

Stored size: 473 Bytes

Contents

module Shipit
  UnknownStatus = Struct.new(:commit) do
    def state
      'unknown'
    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

7 entries across 7 versions & 1 rubygems

Version Path
shipit-engine-0.8.0 app/models/shipit/unknown_status.rb
shipit-engine-0.7.0 app/models/shipit/unknown_status.rb
shipit-engine-0.6.4 app/models/shipit/unknown_status.rb
shipit-engine-0.6.3 app/models/shipit/unknown_status.rb
shipit-engine-0.6.2 app/models/shipit/unknown_status.rb
shipit-engine-0.6.1 app/models/shipit/unknown_status.rb
shipit-engine-0.6.0 app/models/shipit/unknown_status.rb