lib/poolparty/net/init.rb in auser-poolparty-1.2.7 vs lib/poolparty/net/init.rb in auser-poolparty-1.2.8

- old
+ new

@@ -1,10 +1,23 @@ +class Object + #TODO: deprecate. use RemoterBase.available_bases instead + def remote_bases + $remote_bases ||= [] + end +end + # Load the core net libraries. These are neccessary for any of the remoter_bases to function. -%w(remote_instance remote_bases remoter_base).each do |file| +%w(remote_instance remoter_base).each do |file| require File.join(::File.dirname(__FILE__),file+'.rb') end +# +# # Register available remoter_bases +# Dir["#{::File.dirname(__FILE__)}/remoter_bases/*/*.rb"].each do |base| +# name = File.join(::File.basename(base, ::File.extname(base))) +# require base +# end -# Register available remoter_bases -Dir["#{::File.dirname(__FILE__)}/remoter_bases/*/*.rb"].each do |base| - name = File.join(::File.basename(base, ::File.extname(base))) + +Dir["#{::File.dirname(__FILE__)}/remoter_bases/*/*.rb"].each do |base| + name = ::File.basename(base, ::File.extname(base)) require base end \ No newline at end of file