Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.263 kb
require "momentum"
port = ARGV.shift.to_i
if port.zero?
puts "usage: #{$0} <port_to_proxy>"
exit
end
EM.run do
Momentum.start(Momentum::Adapters::Proxy.new('localhost', port))
puts ">> Momentum running on 0.0.0.0:5555 proxying to localhost:#{port}"
end
Jump to Line
Something went wrong with that request. Please try again.