lib/commands/server.rb in pakyow-0.8.0 vs lib/commands/server.rb in pakyow-0.9.0
- old
+ new
@@ -6,17 +6,17 @@
require 'app'
valid_args = true
if port_arg = ARGV.index("-p")
if ARGV[port_arg + 1] =~ /^\d{1,5}$/
- Pakyow::Config::Server.port = ARGV[port_arg + 1]
+ Pakyow::Config.server.port = ARGV[port_arg + 1]
ARGV.delete_at(port_arg + 1)
ARGV.delete_at(port_arg)
else
valid_args = false
end
elsif port_arg = ARGV.index {|a| a =~ /^--port=\d{1,5}$/}
- Pakyow::Config::Server.port = ARGV[port_arg].gsub(/--port=/, '')
+ Pakyow::Config.server.port = ARGV[port_arg].gsub(/--port=/, '')
ARGV.delete_at(port_arg)
end
if valid_args
Pakyow::App.run(ARGV.first)