Class: AudioAddict::Commands::LoginCmd

Inherits:
Base
  • Object
show all
Defined in:
lib/audio_addict/commands/login.rb

Instance Method Summary collapse

Methods inherited from Base

#current_channel, #current_network, #needs, #prompt, #radio, #require_premium_account

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/audio_addict/commands/login.rb', line 11

def run
  proceed = true

  if radio.api.logged_in?
    say "!txtylw!You are already logged in as !undylw!#{Config.email}"
    proceed = prompt.yes? "Login again?"
  end

   if proceed
end