Sha256: 0f93b6321f464619fd5bbde79259965e7cf3bb02fa91ca61abaa9b1749129783

Contents?: true

Size: 658 Bytes

Versions: 22

Compression:

Stored size: 658 Bytes

Contents

# encoding: utf-8
#
module Picky

  module Indexers

    #
    #
    class Base

      attr_reader :index_or_category

      delegate :source, :to => :index_or_category

      def initialize index_or_category
        @index_or_category = index_or_category
      end

      # Starts the indexing process.
      #
      def index categories
        start_indexing_message
        prepare categories
        process categories
        finish_indexing_message
      end

      # By default, an indexer
      #  * prepares the index directories.
      #
      def prepare categories
        categories.each &:prepare_index_directory
      end

    end

  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
picky-3.2.0 lib/picky/indexers/base.rb
picky-3.1.13 lib/picky/indexers/base.rb
picky-3.1.12 lib/picky/indexers/base.rb
picky-3.1.11 lib/picky/indexers/base.rb
picky-3.1.10 lib/picky/indexers/base.rb
picky-3.1.9 lib/picky/indexers/base.rb
picky-3.1.8 lib/picky/indexers/base.rb
picky-3.1.7 lib/picky/indexers/base.rb
picky-3.1.6 lib/picky/indexers/base.rb
picky-3.1.5 lib/picky/indexers/base.rb
picky-3.1.4 lib/picky/indexers/base.rb
picky-3.1.3 lib/picky/indexers/base.rb
picky-3.1.2 lib/picky/indexers/base.rb
picky-3.1.1 lib/picky/indexers/base.rb
picky-3.1.0 lib/picky/indexers/base.rb
picky-3.0.1 lib/picky/indexers/base.rb
picky-3.0.0 lib/picky/indexers/base.rb
picky-3.0.0.pre5 lib/picky/indexers/base.rb
picky-3.0.0.pre4 lib/picky/indexers/base.rb
picky-3.0.0.pre3 lib/picky/indexers/base.rb