lib/lusnoc/configuration.rb in lusnoc-1.0.1.81647 vs lib/lusnoc/configuration.rb in lusnoc-1.0.1.81655

- old
+ new

@@ -2,18 +2,19 @@ module Lusnoc # Methods for configuring Lusnoc class Configuration - attr_accessor :url, :acl_token, :logger + attr_accessor :url, :acl_token, :logger, :http_timeout # Override defaults for configuration # @param url [String] consul's connection URL # @param acl_token [String] a connection token used when making requests to consul def initialize(url = 'http://localhost:8500', acl_token = nil) @url = url @acl_token = acl_token @logger = Logger.new(STDOUT, level: Logger::INFO, progname: 'Lusnoc') + @http_timeout = 5 end end end