blob: e44d63e2a679d17117b8f8544d3d048c947d4518 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require File.expand_path("../endpoint", __FILE__)
Artifice.deactivate
class EndpointHostRedirect < Endpoint
get "/fetch/actual/gem/:id", :host_name => 'localgemserver.test' do
redirect "http://bundler.localgemserver.test#{request.path_info}"
end
get "/api/v1/dependencies" do
status 404
end
end
Artifice.activate_with(EndpointHostRedirect)
|