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

Version Path
lusnoc-1.0.1.81647 lib/lusnoc/configuration.rb
lusnoc-1.0.1.70330 lib/lusnoc/configuration.rb
lusnoc-1.0.0.70325 lib/lusnoc/configuration.rb
lusnoc-1.0.0.44554 lib/lusnoc/configuration.rb
lusnoc-0.9.0.44532 lib/lusnoc/configuration.rb
lusnoc-0.1.2.16875 lib/lusnoc/configuration.rb
lusnoc-0.1.2.16587 lib/lusnoc/configuration.rb
lusnoc-0.1.2.16562 lib/lusnoc/configuration.rb
lusnoc-0.1.2.16550 lib/lusnoc/configuration.rb
lusnoc-0.1.2.16548 lib/lusnoc/configuration.rb
lusnoc-0.1.0 lib/lusnoc/configuration.rb
lusnoc-0.0.2 lib/lusnoc/configuration.rb
lusnoc-0.0.1 lib/lusnoc/configuration.rb