Sha256: 80956f50d276d54689784ddd8df0b6e97444b702e3bf9d31a0a5b7ea3cc58dcc
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
class BenchHost include Sanford::Host port 59284 pid_file File.expand_path("../../tmp/bench_host.pid", __FILE__) logger Logger.new(STDOUT) verbose_logging false service 'simple', 'BenchHost::Simple' class Simple include Sanford::ServiceHandler def run! { :string => 'test', :int => 1, :float => 2.1, :boolean => true, :hash => { :something => 'else' }, :array => [ 1, 2, 3 ], :request_number => self.request.params['request_number'] } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sanford-0.10.1 | bench/services.rb |
sanford-0.10.0 | bench/services.rb |
sanford-0.9.0 | bench/services.rb |
sanford-0.8.0 | bench/services.rb |