lib/geong/server.rb in geong-0.0.1 vs lib/geong/server.rb in geong-0.0.2
- old
+ new
@@ -6,14 +6,12 @@
module Geong
class Server
@@default_configuration = Configuration.new
def self.start(argv)
- params = ARGV.getopts('', "port:#{Geong::Server::Configuration::DEFAULT_PORT}", 'daemon', 'config:')
+ params = ARGV.getopts('','daemon', 'config:')
- @@default_configuration.port = params["port"] || DEFAULT_PORT
-
- config_filepath = params["config"] ? File.expand_path(params["config"]) : null
+ config_filepath = params["config"] ? File.expand_path(params["config"]) : nil
if config_filepath
@@default_configuration.logger.info "Load config file. #{config_filepath}"
load config_filepath
end