Sha256: f70df28e5a1ae57f22fa026544693d527902054a1d7fdc735cab24aa861f5982
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 Bytes
Contents
module Chamber class Configuration attr_accessor :basepath, :decryption_key, :encryption_key, :files, :namespaces def initialize(options = {}) self.basepath = options[:basepath] || '' self.namespaces = options[:namespaces] || [] self.decryption_key = options[:decryption_key] self.encryption_key = options[:encryption_key] self.files = options[:files] || [ self.basepath + 'credentials*.yml', self.basepath + 'settings*.yml', self.basepath + 'settings' ] end def to_hash { basepath: self.basepath, decryption_key: self.decryption_key, encryption_key: self.encryption_key, files: self.files, namespaces: self.namespaces, } end def basepath=(pathlike) @basepath = pathlike == '' ? '' : Pathname.new(::File.expand_path(pathlike)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chamber-2.0.0 | lib/chamber/configuration.rb |