Sha256: 6e21111c3a1831ac26f34a70a8e15e5cd6ef6a38e5fb806f8e7973eb13166743
Contents?: true
Size: 561 Bytes
Versions: 6
Compression:
Stored size: 561 Bytes
Contents
module SecretsCli class Configuration attr_reader :environment, :verbose def initialize(options) @environment = options.environment || ENV['RAILS_ENV'] || 'development' @verbose = options.verbose end def config @config ||= YAML.load_file(SECRETS_CONFIG_FILE) end def secrets_file config[:secrets_file] end def secrets_storage_key config[:secrets_storage_key] end def self.write(config) File.open(SECRETS_CONFIG_FILE, 'w') { |file| file.write(config.to_yaml) } end end end
Version data entries
6 entries across 6 versions & 1 rubygems