Sha256: 7808c4d2df4cfafa3a0814ed604f046c60f788d80ff2569ded9a2424d7412478

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 Bytes

Contents

#!/usr/bin/env ruby

require 'bundler'
Bundler.require :default, :test, :development

require 'sinatra/base'

class Server < Sinatra::Base
  get '/:name' do
    root_directory = Pathname.new(File.expand_path('../../tmp/aruba', __FILE__))
    File.read(File.join(root_directory, params[:name]))
  end
end

Server.run!

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
proxy_pac_rb-0.3.4 script/test_web
proxy_pac_rb-0.3.3 script/test_web
proxy_pac_rb-0.3.2 script/test_web
proxy_pac_rb-0.3.0 script/test_web