Sha256: 8ce67f7fa2bdaceae781ed5df6a3edf1a23c967591754911b347a8c9f4666212

Contents?: true

Size: 679 Bytes

Versions: 10

Compression:

Stored size: 679 Bytes

Contents

module Filbunke
  class Callbacks

    def initialize(logger, config = {})
      @config = config
      @logger = logger
    end

    def on_update_batch(files)
      files.each do |item|
        on_update(item.file, item.local_file_path)
      end
    end
    def on_update(file, local_file_path)
    end

    def on_no_change_batch(files)
      files.each do |item|
        on_no_change(item.file, item.local_file_path)
      end
    end
    def on_no_change(file, local_file_path)
    end

    def on_delete_batch(files)
      files.each do |item|
        on_delete(item.file, item.local_file_path)
      end
    end
    def on_delete(file, local_file_path)
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
filbunke-1.13.5 lib/filbunke/callbacks.rb
filbunke-1.13.4 lib/filbunke/callbacks.rb
filbunke-1.13.3 lib/filbunke/callbacks.rb
filbunke-1.13.2 lib/filbunke/callbacks.rb
filbunke-1.13.1 lib/filbunke/callbacks.rb
filbunke-1.13.0 lib/filbunke/callbacks.rb
filbunke-1.12.0 lib/filbunke/callbacks.rb
filbunke-1.11.9 lib/filbunke/callbacks.rb
filbunke-1.11.8 lib/filbunke/callbacks.rb
filbunke-1.11.6 lib/filbunke/callbacks.rb