Sha256: 6fc763f6421dfeae490895d7a9e59e7236a873c3a8d430693eceb13d5ce70642
Contents?: true
Size: 922 Bytes
Versions: 2
Compression:
Stored size: 922 Bytes
Contents
# frozen_string_literal: true require 'chamber/context_resolver' module Chamber class Configuration attr_accessor :basepath, :decryption_keys, :encryption_keys, :files, :namespaces, :rootpath def initialize(options = {}) options = ContextResolver.resolve(options) self.basepath = options.fetch(:basepath) self.namespaces = options.fetch(:namespaces) self.decryption_keys = options.fetch(:decryption_keys) self.encryption_keys = options.fetch(:encryption_keys) self.files = options.fetch(:files) self.rootpath = options.fetch(:rootpath) end def to_hash { basepath: basepath, decryption_keys: decryption_keys, encryption_keys: encryption_keys, files: files, namespaces: namespaces, } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chamber-2.13.1 | lib/chamber/configuration.rb |
chamber-2.13.0 | lib/chamber/configuration.rb |