silver_spurs 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/silver_spurs/client.rb +2 -1
- data/lib/silver_spurs/version.rb +1 -1
- metadata +1 -1
data/lib/silver_spurs/client.rb
CHANGED
@@ -8,6 +8,7 @@ module SilverSpurs
|
|
8
8
|
class Client
|
9
9
|
def initialize(host_url, options={})
|
10
10
|
@host_url = host_url
|
11
|
+
@timeout = options[:timeout] || 60 * 60
|
11
12
|
end
|
12
13
|
|
13
14
|
def bootstrap(ip, node_name, options = {})
|
@@ -35,7 +36,7 @@ module SilverSpurs
|
|
35
36
|
end
|
36
37
|
|
37
38
|
def spur_host
|
38
|
-
RestClient::Resource.new(@host_url, :timeout =>
|
39
|
+
RestClient::Resource.new(@host_url, :timeout => @timeout)
|
39
40
|
end
|
40
41
|
|
41
42
|
end
|
data/lib/silver_spurs/version.rb
CHANGED