Class: IPVSLitmus::CLI::Server
- Inherits:
-
Rack::Server
- Object
- Rack::Server
- IPVSLitmus::CLI::Server
- Defined in:
- lib/ipvs_litmus/cli/server.rb
Defined Under Namespace
Classes: Options
Instance Method Summary collapse
Instance Method Details
#default_options ⇒ Object
54 55 56 57 58 59 |
# File 'lib/ipvs_litmus/cli/server.rb', line 54 def super.merge( :litmus_config => '/etc/litmus.conf', :config_dir => '/etc/litmus' ) end |
#opt_parser ⇒ Object
39 40 41 |
# File 'lib/ipvs_litmus/cli/server.rb', line 39 def opt_parser Options.new end |
#start ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/ipvs_litmus/cli/server.rb', line 43 def start if !File.exists?([:litmus_config]) puts "Could not find #{[:litmus_config]}. Specify correct location with -c file" exit 1 end IPVSLitmus.configure([:litmus_config]) IPVSLitmus.config_dir = [:config_dir] super end |