lib/multi_process/process/rails.rb in multi_process-0.3.0 vs lib/multi_process/process/rails.rb in multi_process-0.4.0

- old
+ new

@@ -22,10 +22,14 @@ def initialize(opts = {}) self.server = opts[:server] if opts[:server] self.port = opts[:port] if opts[:port] - super ['rails', 'server', server, '--port', port].reject(&:nil?).map(&:to_s), opts + super *server_command, opts + end + + def server_command + ['rails', 'server', server, '--port', port].reject(&:nil?).map(&:to_s) end def server=(server) @server = server.to_s.empty? ? nil : server.to_s end