Class: Hubba::Configuration
- Inherits:
-
Object
- Object
- Hubba::Configuration
- Defined in:
- lib/hubba/config.rb
Instance Method Summary collapse
-
#cache_dir ⇒ Object
todo/check: rename to/use tmp_dir - why? why not?.
- #cache_dir=(value) ⇒ Object
- #data_dir ⇒ Object
- #data_dir=(value) ⇒ Object
- #password ⇒ Object
- #password=(value) ⇒ Object
-
#token ⇒ Object
try default setup via ENV variables.
- #token=(value) ⇒ Object
-
#user ⇒ Object
todo/check: use HUBBA_LOGIN - why? why not?.
- #user=(value) ⇒ Object
Instance Method Details
#cache_dir ⇒ Object
todo/check: rename to/use tmp_dir - why? why not?
8 |
# File 'lib/hubba/config.rb', line 8 def cache_dir() @cache_dir || './cache'; end |
#cache_dir=(value) ⇒ Object
9 |
# File 'lib/hubba/config.rb', line 9 def cache_dir=( value ) @cache_dir = value; end |
#data_dir ⇒ Object
4 |
# File 'lib/hubba/config.rb', line 4 def data_dir() @data_dir || './data'; end |
#data_dir=(value) ⇒ Object
5 |
# File 'lib/hubba/config.rb', line 5 def data_dir=( value ) @data_dir = value; end |
#password ⇒ Object
18 |
# File 'lib/hubba/config.rb', line 18 def password() @password || ENV[ 'HUBBA_PASSWORD' ]; end |
#password=(value) ⇒ Object
20 |
# File 'lib/hubba/config.rb', line 20 def password=( value ) @password = value; end |
#token ⇒ Object
try default setup via ENV variables
13 |
# File 'lib/hubba/config.rb', line 13 def token() @token || ENV[ 'HUBBA_TOKEN' ]; end |
#token=(value) ⇒ Object
14 |
# File 'lib/hubba/config.rb', line 14 def token=( value ) @token = value; end |
#user ⇒ Object
todo/check: use HUBBA_LOGIN - why? why not?
17 |
# File 'lib/hubba/config.rb', line 17 def user() @user || ENV[ 'HUBBA_USER' ]; end |
#user=(value) ⇒ Object
19 |
# File 'lib/hubba/config.rb', line 19 def user=( value ) @user = value; end |