Sha256: f638c97d80b119401396052c8ab0dee97003ce4ba27add90a303cd501b232116

Contents?: true

Size: 501 Bytes

Versions: 14

Compression:

Stored size: 501 Bytes

Contents

module Conjur
  class Config
    @@attributes = {}
    
    class << self
      def inspect
        @@attributes.inspect
      end
      
      def plugins
        plugins = @@attributes['plugins']
        if plugins
          plugins.is_a?(Array) ? plugins : plugins.split(',')
        else
          []
        end
      end
      
      def merge(a)
        a = {} unless a
        @@attributes.merge!(a)
      end
      
      def [](key)
        @@attributes[key.to_s]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
conjur-cli-2.6.0 lib/conjur/config.rb
conjur-cli-2.4.1 lib/conjur/config.rb
conjur-cli-2.4.0 lib/conjur/config.rb
conjur-cli-2.3.0 lib/conjur/config.rb
conjur-cli-2.2.1 lib/conjur/config.rb
conjur-cli-2.1.9 lib/conjur/config.rb
conjur-cli-2.1.8 lib/conjur/config.rb
conjur-cli-2.1.7 lib/conjur/config.rb
conjur-cli-2.1.6 lib/conjur/config.rb
conjur-cli-2.1.5 lib/conjur/config.rb
conjur-cli-2.1.4 lib/conjur/config.rb
conjur-cli-2.1.3 lib/conjur/config.rb
conjur-cli-2.1.2 lib/conjur/config.rb
conjur-cli-2.1.1 lib/conjur/config.rb