Sha256: 845ab0f524392e003bd2c0e157d3baf750ec87a7914903a7379aae059687280b

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

require 'engineyard-serverside/callbacks/distributor/remote'
require 'engineyard-serverside/callbacks/distributor/viability_filter'

module EY
  module Serverside
    module Callbacks

      module Distributor
        def self.distribute(runner, hooks)
          ViabilityFilter.
            new.
            call({:candidates => hooks, :shell => runner.shell}).
            and_then {|callback_name|
              Remote.distribute(runner, callback_name)
            }
        end
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
engineyard-serverside-2.8.0.pre3 lib/engineyard-serverside/callbacks/distributor.rb
engineyard-serverside-2.8.0.pre2 lib/engineyard-serverside/callbacks/distributor.rb
engineyard-serverside-2.8.0.pre lib/engineyard-serverside/callbacks/distributor.rb