Class: Conjur::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/conjur/config.rb

Constant Summary collapse

@@attributes =
{}

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



24
25
26
# File 'lib/conjur/config.rb', line 24

def [](key)
  @@attributes[key.to_s]
end

.inspect ⇒ Object



6
7
8
# File 'lib/conjur/config.rb', line 6

def inspect
  @@attributes.inspect
end

.merge(a) ⇒ Object



19
20
21
22
# File 'lib/conjur/config.rb', line 19

def merge(a)
  a = {} unless a
  @@attributes.merge!(a)
end

.plugins ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/conjur/config.rb', line 10

def plugins
  plugins = @@attributes['plugins']
  if plugins
    plugins.is_a?(Array) ? plugins : plugins.split(',')
  else
    []
  end
end