class EY::Serverside::Callbacks::Collection::ServiceHooks::Combined

Public Instance Methods

all() click to toggle source
# File lib/engineyard-serverside/callbacks/collection/service_hooks/combined.rb, line 12
def all
  collections.
    map {|collection| collection.all}.
    flatten
end
matching(callback) click to toggle source
# File lib/engineyard-serverside/callbacks/collection/service_hooks/combined.rb, line 18
def matching(callback)
  collections.
    map {|collection| collection.matching(callback)}.
    flatten
end

Private Instance Methods

collections() click to toggle source
# File lib/engineyard-serverside/callbacks/collection/service_hooks/combined.rb, line 31
def collections
  @collections ||= []
end
load_hooks() click to toggle source
# File lib/engineyard-serverside/callbacks/collection/service_hooks/combined.rb, line 25
def load_hooks
  Dir["#{paths.shared_hooks}/*"].each do |service_path|
    collections.push(ServiceHooks::Collection.load(service_path))
  end
end