class KPM::Uninstaller

def initialize(destination, logger = nil)

def initialize(destination, logger = nil)
  @logger = logger
  if @logger.nil?
    @logger = Logger.new(STDOUT)
    @logger.level = Logger::INFO
  end
  @destination = (destination || KPM::BaseInstaller::DEFAULT_BUNDLES_DIR)
  refresh_installed_plugins
  plugins_installation_path = File.join(@destination, 'plugins')
  @plugins_manager = PluginsManager.new(plugins_installation_path, @logger)
  sha1_file_path = File.join(@destination, KPM::BaseInstaller::SHA1_FILENAME)
  @sha1checker = KPM::Sha1Checker.from_file(sha1_file_path, @logger)
end