1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/core/timeout.rb

12 lines
205 B
Ruby
Raw Normal View History

2011-07-11 18:06:47 -04:00
module Fog
2011-07-12 12:04:49 -04:00
@timeout = 600
2011-07-11 23:05:54 -04:00
def self.timeout
2011-07-12 12:04:49 -04:00
@timeout
2011-07-11 23:05:54 -04:00
end
2011-07-11 18:06:47 -04:00
2011-07-11 23:05:54 -04:00
def self.timeout=(timeout)
raise ArgumentError, "timeout must be non-negative" unless timeout >= 0
@timeout = timeout
end
2011-07-11 18:06:47 -04:00
end