class EnClient::AuthCommand

Attributes

passwd[RW]
user[RW]

Public Instance Methods

exec_impl() click to toggle source
# File usr/lib/evernote-mode/enclient.rb, line 428
def exec_impl
  Formatter.to_ascii @user, @passwd

  server_task do
    sm.authenticate @user, @passwd
    LOG.info "Auth successed: auth_token = '#{sm.auth_token}', shared_id = '#{sm.shared_id}'"
    tm.put SyncTask.new(sm, dm, tm)
    server_task true do # defer reply until first sync will be done.
      shell.reply self, AuthReply.new
    end
  end
end