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

[general] Merge Forg.interval and Fog.timeout into a single file.

This commit is contained in:
radekg 2013-12-16 22:46:53 +01:00
parent 5d6e15a00f
commit 18ccdbba44
3 changed files with 11 additions and 13 deletions

View file

@ -20,7 +20,6 @@ require 'fog/core/current_machine'
require 'fog/core/deprecation'
require 'fog/core/errors'
require 'fog/core/hmac'
require 'fog/core/interval'
require 'fog/core/logger'
require 'fog/core/model'
require 'fog/core/mock'
@ -29,8 +28,8 @@ require 'fog/core/service'
require 'fog/core/ssh'
require 'fog/core/scp'
require 'fog/core/time'
require 'fog/core/timeout'
require 'fog/core/wait_for'
require 'fog/core/wait_for_defaults'
require 'fog/core/class_from_string'
require 'fog/core/uuid'

View file

@ -1,11 +0,0 @@
module Fog
@timeout = 600
def self.timeout
@timeout
end
def self.timeout=(timeout)
raise ArgumentError, "timeout must be non-negative" unless timeout >= 0
@timeout = timeout
end
end

View file

@ -8,4 +8,14 @@ module Fog
raise ArgumentError, "interval must be non-negative" unless interval >= 0
@interval = interval
end
@timeout = 600
def self.timeout
@timeout
end
def self.timeout=(timeout)
raise ArgumentError, "timeout must be non-negative" unless timeout >= 0
@timeout = timeout
end
end