markbates / mack-more

All the extra stuff you could want for the Mack Framework.

This URL has Read+Write access

mack-more / mack-distributed / lib / mack-distributed.rb
fa882c50 » markbates 2008-08-08 Added ACL to mack-distribut... 1 require 'drb/acl'
ff5a4840 » markbates 2008-08-08 Added lookup method to Mack... 2 require 'addressable/uri'
fa882c50 » markbates 2008-08-08 Added ACL to mack-distribut... 3
dc169592 » dsutedja 2008-08-05 Project start [#8 state:res... 4 base = File.join(File.dirname(__FILE__), "mack-distributed")
5
c8e93fc4 » markbates 2008-08-06 Got all the tests passing f... 6 config = {
7 "mack::share_routes" => false,
8 "mack::share_objects" => false,
9 "mack::distributed_app_name" => nil,
10 "mack::distributed_site_domain" => "http://localhost:3000",
11 "mack::drb_timeout" => 0
12 }
13 app_config.load_hash(config.merge(app_config.final_configuration_settings), "mack-distributed")
d1f8d3cc » markbates 2008-08-06 Working on renaming use_dis... 14
5758548c » dsutedja 2008-08-05 Moved ring_server tasks to ... 15 # load *.rb files
16 Dir.glob(File.join(base, "**", "*.rb")).each do |f|
17 load(f)
dc169592 » dsutedja 2008-08-05 Project start [#8 state:res... 18 end
19
5758548c » dsutedja 2008-08-05 Moved ring_server tasks to ... 20 # load tasks
21 Dir.glob(File.join(base, "tasks", "*.rake")).each do |f|
22 load(f)
23 end