lib/spork/server.rb in spork-0.5.8 vs lib/spork/server.rb in spork-0.5.9
- old
+ new
@@ -92,12 +92,16 @@
stderr.flush
DRb.thread.join
end
def port
- self.class.port
+ self.class.instance_variable_get("@port") || self.class.port
end
+
+ def self.port= p
+ @port = p
+ end
def helper_file
self.class.helper_file
end
@@ -192,6 +196,6 @@
exit!(0)
end
end
end
-Dir[File.dirname(__FILE__) + "/server/*.rb"].each { |file| require file }
\ No newline at end of file
+Dir[File.dirname(__FILE__) + "/server/*.rb"].each { |file| require file }