Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Cred
- def initialize(env)
- if [:test, :development, :production, :staging].include?(env)
- puts env
- @credentials = Rails.application.credentials.send(env)
- else
- raise("Cred: #{env} is not a defined environment")
- end
- @credentials
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement