Class: PHPRPC::FakeServer

Inherits:
Object
  • Object
show all
Defined in:
lib/phprpc/fake_server.rb

Instance Method Summary collapse

Constructor Details

#initializeFakeServer

Returns a new instance of FakeServer.



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/phprpc/fake_server.rb', line 36

def initialize
  @opts = OptionParser.new
  @opts.banner = "Usage: #{@opts.program_name} [ServerName] [options]"
  @opts.separator ""
  @opts.separator "ServerName: (mongrel, thin, fcgi, scgi, lsapi, ebb, webrick)"
  @opts.separator ""
  @opts.separator "options:"
  @opts.on_tail('-?', '-h', '--help', "Show this help message.", "Show more messages with ServerName.") { puts @opts; exit }
  puts @opts
  exit
end