    # File lib/facets/more/downloader.rb, line 248
      def extract( local_path )
        success = false
        local_dir = File.dirname(local_path)
        local_file = File.basename(local_path)
        current_dir = Dir.getwd
        begin
          Dir.chdir(local_dir)
          case local_file
            when /.*gz$/
              system "tar -xzf #{local_file}"
            when /.*bz2$/
              system "tar -xjf #{local_file}"
            when /.zip$/
              system "unzip #{local_file}"
            else
              success = false
          end
        rescue
          success = false
        else
          success = true
        ensure
          Dir.chdir(current_dir)
        end
        if interface
          interface.extracted( local_path)
        end
        return success
      end