app/models/shipit/status/unknown.rb in shipit-engine-0.24.0 vs app/models/shipit/status/unknown.rb in shipit-engine-0.25.0
- old
+ new
@@ -1,17 +1,32 @@
module Shipit
class Status
class Unknown
+ include GlobalID::Identification
include Common
+ class << self
+ def find(id)
+ new(Commit.find(id))
+ end
+ end
+
attr_reader :commit
def initialize(commit)
@commit = commit
end
+ def id
+ commit.id
+ end
+
def state
'unknown'.freeze
+ end
+
+ def missing?
+ true
end
def target_url
nil
end