| Conditions | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | require 'dotenv' |
||
| 64 | |||
| 65 | def load_env |
||
| 66 | ['RC_APP_KEY', 'RC_APP_SECRET', 'RC_APP_SERVER_URL', 'RC_APP_REDIRECT_URL'].each do |var| |
||
| 67 | if !ENV.key?(var) |
||
| 68 | fail "environment variable '#{var}' not found" |
||
| 69 | end |
||
| 70 | end |
||
| 71 | |||
| 72 | @key = ENV['RC_APP_KEY'] |
||
| 73 | @secret = ENV['RC_APP_SECRET'] |
||
| 74 | @server_url = ENV['RC_APP_SERVER_URL'] |
||
| 75 | @redirect_url = ENV['RC_APP_REDIRECT_URL'] |
||
| 76 | end |
||
| 103 |