Sha256: 728260341b9da51d136de410b9de9ab8321f86e4e2b009fb1f19f510bbdbf729
Contents?: true
Size: 523 Bytes
Versions: 13
Compression:
Stored size: 523 Bytes
Contents
require 'logger' module Lusnoc # Methods for configuring Lusnoc class Configuration attr_accessor :url, :acl_token, :logger # 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') end end end
Version data entries
13 entries across 13 versions & 1 rubygems