Module: Travis::Client::Restartable

Included in:
Build, Job
Defined in:
lib/travis/client/restartable.rb

Instance Method Summary collapse

Instance Method Details

#cancelObject



18
19
20
# File 'lib/travis/client/restartable.rb', line 18

def cancel
  session.cancel(self)
end

#cancelable?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/travis/client/restartable.rb', line 14

def cancelable?
  true
end

#restartObject



10
11
12
# File 'lib/travis/client/restartable.rb', line 10

def restart
  session.restart(self)
end

#restartable?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/travis/client/restartable.rb', line 6

def restartable?
  true
end