class Devpad::App

Public Instance Methods

install() click to toggle source
# File lib/devpad/app.rb, line 24
def install
  Devpad::CLI::Commands::User::Reset.new(shell: shell).execute
  Devpad::CLI::Commands::User::Login.new(shell: shell).execute
  Devpad::CLI::Commands::Account::Select.new(shell: shell).execute
end
login() click to toggle source
# File lib/devpad/app.rb, line 10
def login
  if Devpad::CLI::Commands::User::Login.new(shell: shell).execute
    shell.say 'Success. Done.'
  else
    shell.say 'Invalid login or password.'
  end
end
reset() click to toggle source
# File lib/devpad/app.rb, line 19
def reset
  Devpad::CLI::Commands::User::Reset.new(shell: shell).execute
end
version() click to toggle source
# File lib/devpad/app.rb, line 5
def version
  shell.say Devpad::VERSION
end