module RailsEnvCredentials
Constants
- VERSION
Public Class Methods
config_path=(path)
click to toggle source
# File lib/rails_env_credentials.rb, line 10 def config_path=(path) if path.end_with?('credentials.yml.enc') env = 'production' else env = /-(\w+)\.yml\.enc\Z/.match(path).to_a[1] end @config = Config.new(env: env, config_path: path) end
credentials()
click to toggle source
# File lib/rails_env_credentials.rb, line 27 def credentials ActiveSupport::EncryptedConfiguration.new(options) end
env=(env)
click to toggle source
# File lib/rails_env_credentials.rb, line 19 def env=(env) @config = Config.new(env: env) end
options()
click to toggle source
# File lib/rails_env_credentials.rb, line 23 def options (@config || Config.new).to_options end