Sha256: a8add33f04446779e176a7b4cfdf3eb43abea171bb4f6999dd752bfcfd2fdbb3
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
module Capistrano module SecretsYml module Helpers def read_local_secrets_yml @local_secrets_yml ||= YAML.load_file(secrets_yml_local_path) end def secrets_yml_content @content ||= begin env = fetch(:secrets_yml_env).to_s Hash[env => read_local_secrets_yml.fetch(env)].to_yaml end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-secrets-yml-0.0.1 | lib/capistrano/secrets_yml/helpers.rb |