bin/ned-server in opener-ned-2.4.1 vs bin/ned-server in opener-ned-3.0.0
- old
+ new
@@ -1,8 +1,10 @@
#!/usr/bin/env ruby
-require 'puma/cli'
+require 'opener/webservice'
-rack_config = File.expand_path('../../config.ru', __FILE__)
+parser = Opener::Webservice::OptionParser.new(
+ 'opener-ned',
+ File.expand_path('../../config.ru', __FILE__)
+)
-cli = Puma::CLI.new([rack_config] + ARGV)
-cli.run
+parser.run