Sha256: f68cf865af8255209663e7c577ef74a41ef07ec6fafeacdf1d9c438f67878160

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

#
# This file was ported to ruby from Composer php source code.
# Original Source: Composer\Repository\RepositoryInterface.php
#
# (c) Nils Adermann <naderman@naderman.de>
#     Jordi Boggiano <j.boggiano@seld.be>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#

module Composer
  module Repository
    # Base repository.
    #
    # PHP Authors:
    # Nils Adermann <naderman@naderman.de>
    # Konstantin Kudryashov <ever.zet@gmail.com>
    # Jordi Boggiano <j.boggiano@seld.
    #
    # Ruby Authors:
    # Ioannis Kappas <ikappas@devworks.gr>
    class BaseRepository
      SEARCH_FULLTEXT = 0
      SEARCH_NAME = 1

      def package?
        # implement inside child
      end

      def find_package(name, version)
        # implement inside child
      end

      def find_packages(name, version = nil)
        # implement inside child
      end

      def packages
        # implement inside child
      end

      def search(query, mode = 0)
        # implement inside child
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
php-composer-0.3.0 lib/composer/repository/base_repository.rb