Sha256: acda240b5010d09ae9d1c528bd36016ed89992bca5ab1520c1a5b225cfaa4e90

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

require 'travis/client'

module Travis
  module Client
    module Restartable
      def restartable?
        true
      end

      def restart
        session.restart(self)
      end

      def cancelable?
        true
      end

      def cancel
        session.cancel(self)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
travis-1.14.0 lib/travis/client/restartable.rb
travis-1.13.3 lib/travis/client/restartable.rb
travis-1.13.2 lib/travis/client/restartable.rb
travis-1.13.1 lib/travis/client/restartable.rb
travis-1.13.0 lib/travis/client/restartable.rb
travis-1.12.0 lib/travis/client/restartable.rb