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



9
10
11
# File 'lib/renuo/cli/app/services/renuo_cli_config.rb', line 9

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

.toggl_api_tokenObject



13
14
15
# File 'lib/renuo/cli/app/services/renuo_cli_config.rb', line 13

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