lib/travis/client/job.rb in travis-1.5.1 vs lib/travis/client/job.rb in travis-1.5.2

- old
+ new

@@ -1,11 +1,11 @@ require 'travis/client' module Travis module Client class Job < Entity - include States + include States, Restartable # @!parse attr_reader :repository_id, :build_id, :commit_id, :log_id, :number, :config, :state, :started_at, :finished_at, :queue, :allow_failure, :tags attributes :repository_id, :build_id, :commit_id, :log_id, :number, :config, :state, :started_at, :finished_at, :queue, :allow_failure, :tags time :started_at, :finished_at @@ -14,13 +14,9 @@ # @!parse attr_reader :commit, :repository, :build has :commit, :repository, :build, :log one :job many :jobs - - def restart - session.restart(self) - end def pull_request? build.pull_request? end