Module: TrackerHookForwarder::RackIntegration

Defined in:
lib/tracker-hook-forwarder/rack_integration.rb

Overview

Makes it possible to simply use the following in config.ru

forward 'my_project', 'https://xyz.com'

Instance Method Summary collapse

Instance Method Details

#forward(project, url) ⇒ Object



6
7
8
9
# File 'lib/tracker-hook-forwarder/rack_integration.rb', line 6

def forward(project, url)
  TrackerHookForwarder.add_forwarding project, url
  STDOUT.puts "Will forward POSTs on /activity/#{project} to #{url}"
end