Exception: Ruber::Rake::Plugin::Timeout

Inherits:
Error
  • Object
show all
Defined in:
plugins/rake/rake.rb

Overview

Exception raised if rake doesn’t exit after a given amount of time

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Timeout) initialize(seconds)

A new instance of Timeout

Parameters:

  • seconds (Integer)

    the the number of seconds waited before raising the exception



113
114
115
116
# File 'plugins/rake/rake.rb', line 113

def initialize seconds
  super "Rake failed to finish within the allowed time (#{seconds} seconds)"
  @time = seconds
end

Instance Attribute Details

- (Integer) time (readonly)

The number of seconds waited before raising the exception

Returns:

  • (Integer)

    the number of seconds waited before raising the exception



108
109
110
# File 'plugins/rake/rake.rb', line 108

def time
  @time
end