Module: ConfigKit

Defined in:
lib/config_kit.rb,
lib/config_kit/tool.rb,
lib/config_kit/error.rb,
lib/config_kit/client.rb,
lib/config_kit/manager.rb,
lib/config_kit/version.rb,
lib/config_kit/idc_data.rb,
lib/config_kit/cli/command.rb,
lib/config_kit/config_data.rb,
lib/config_kit/data/loader.rb,
lib/config_kit/deploy_data.rb,
lib/config_kit/configuration.rb,
lib/config_kit/ext/slashed_hash.rb

Defined Under Namespace

Modules: Cli, Data Classes: Client, ConfigData, Configuration, DeployData, Error, IDCData, Manager, SlashedHash, Tool

Constant Summary collapse

VERSION =
'0.0.16'

Class Method Summary collapse

Class Method Details

.configObject



9
10
11
# File 'lib/config_kit.rb', line 9

def self.config
  @config ||= Configuration.new(ENV.fetch('CK_URL','http://localhost:8500'), debug: ENV.fetch('DEBUG', false))
end

.loggerObject



13
14
15
# File 'lib/config_kit.rb', line 13

def self.logger
  self.config.logger
end

.logger=(log) ⇒ Object



17
18
19
# File 'lib/config_kit.rb', line 17

def self.logger=(log)
  self.config.logger = log
end