Class: Quandl::Command::Tasks::Uninstall

Inherits:
Base
  • Object
show all
Defined in:
lib/quandl/command/tasks/uninstall.rb

Instance Attribute Summary

Attributes inherited from Base

#args, #options, #request_timer

Instance Method Summary collapse

Methods inherited from Base

#ask_yes_or_no, authenticated_users_only!, autoload_client_library, call, #call, command_name, configure, #current_user, #debug, description, disable!, disable_in_gem!, disabled?, #error, #fatal, #force_yes?, #info, inherited, #initialize, lang, language, #logger, options, #summarize, #summarize_hash, syntax, t, #table, #verbose?, warn_unauthenticated_users

Constructor Details

This class inherits a constructor from Quandl::Command::Tasks::Base

Instance Method Details

#executeObject



10
11
12
13
14
15
# File 'lib/quandl/command/tasks/uninstall.rb', line 10

def execute
  FileUtils.rm_rf( Quandl::Command.root )
  info("Quandl Toolbelt was uninstalled successfully.")
rescue => err
  error("Quandl Toolbelt failed to uninstall. Attempted to delete: #{Quandl::Command.root}\n#{err}")
end