Class: Hubba::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hubba/config.rb

Instance Method Summary collapse

Instance Method Details

#cache_dirObject

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_dirObject



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

#passwordObject



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

#tokenObject

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

#userObject

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