Class: Constancy::PassiveTokenSource
- Inherits:
-
Object
- Object
- Constancy::PassiveTokenSource
- Defined in:
- lib/constancy/token_source.rb
Overview
use env vars if defined, but otherwise just return an empty string
Instance Method Summary collapse
Instance Method Details
#consul_token ⇒ Object
10 11 12 |
# File 'lib/constancy/token_source.rb', line 10 def consul_token ENV['CONSUL_HTTP_TOKEN'] || ENV['CONSUL_TOKEN'] || "" end |
#name ⇒ Object
6 7 8 |
# File 'lib/constancy/token_source.rb', line 6 def name "none" end |