Sha256: 6746946bed861a6ef503fb549ab17d4047b722addbb906e7753b51d21b8971c0
Contents?: true
Size: 433 Bytes
Versions: 9
Compression:
Stored size: 433 Bytes
Contents
require_relative 'initialize' class Secros include Paths def initialize(path) @root_path = path end def value(key) secrets[:values][normalized_key(key)] end def file(key) File.join(secret_files_path, secrets[:files][normalized_key(key)]) end private def secrets @secrets ||= YAML.load(File.read(secrets_path)).deep_symbolize_keys end def normalized_key(key) key.to_s.to_sym end end
Version data entries
9 entries across 9 versions & 1 rubygems