Class: RenuoCliConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/app/services/renuo_cli_config.rb

Constant Summary collapse

CONFIG_FILE_PATH =
"#{File.expand_path('~')}/.renuo_cli".freeze

Class Method Summary collapse

Class Method Details

.redmine_api_keyObject



7
8
9
# File 'lib/renuo/cli/app/services/renuo_cli_config.rb', line 7

def redmine_api_key
  get_config_value('REDMINE_API_KEY', 'https://redmine.renuo.ch/my/account')
end

.toggl_api_tokenObject



11
12
13
# File 'lib/renuo/cli/app/services/renuo_cli_config.rb', line 11

def toggl_api_token
  get_config_value('TOGGL_API_TOKEN', 'https://toggl.com/app/profile')
end