Class: Timber::CLI::Installers::Other

Inherits:
Timber::CLI::Installer
  • Object
show all
Defined in:
lib/timber/cli/installers/other.rb

Instance Method Summary collapse

Instance Method Details

#run(app) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/timber/cli/installers/other.rb', line 8

def run(app)
  if app.heroku?
    install_stdout
  else
    api_key_storage_preference = get_api_key_storage_preference
    api_key_code = get_api_key_code(api_key_storage_preference)
    install_http(api_key_code)
  end

  ask_to_proceed
end