GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Moved syncronize back to runtime.
dyoder (author)
Tue Sep 30 23:53:43 -0700 2008
commit  99b0e6874c05d40447001bcdabdac4c38ba3454f
tree    6972f7cb172e8fbdc1f29bc8a2db14761821ccae
parent  e6888fc9198b7f63ea16194c9db37f4980777154
...
63
64
65
 
 
 
 
66
67
68
...
63
64
65
66
67
68
69
70
71
72
0
@@ -63,6 +63,10 @@ module Waves
0
     # Start and / or access the Waves::Logger instance.
0
     def log ; @log ||= Waves::Logger.start ; end
0
 
0
+ # Provides access to the server mutex for thread-safe operation.
0
+ def synchronize( &block ) ; ( @mutex ||= Mutex.new ).synchronize( &block ) ; end
0
+ def synchronize? ; !options[ :turbo ] ; end
0
+
0
   end
0
 
0
 end
...
68
69
70
71
72
73
74
75
76
77
78
...
68
69
70
 
 
 
 
 
71
72
73
0
@@ -68,11 +68,6 @@ module Waves
0
       log.info "Waves Server Stopped"
0
     end
0
 
0
- # Provides access to the server mutex for thread-safe operation.
0
- def synchronize( &block ) ; ( @mutex ||= Mutex.new ).synchronize( &block ) ; end
0
- def synchronize? ; !options[ :turbo ] ; end
0
-
0
-
0
     class << self
0
       private :new, :dup, :clone
0
       # Start or restart the server.
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ namespace :cluster do
0
   desc 'Start a cluster of waves applications.'
0
   task :start do |task|
0
     waves = defined?(WAVES) || ENV['WAVES'] || File.exist?( File.dirname(__FILE__) / :waves )
0
- script = waves ? waves / :bin / 'waves-server' : 'waves-server'
0
+ script = waves ? ( waves / :bin / 'waves-server' ) : 'waves-server'
0
     ( Waves::Console.config.ports || [ Waves::Console.config.port ] ).each do |port|
0
       cmd = "#{script} -p #{port} -c #{ENV['mode']||'development'} -d"
0
       puts cmd ; `#{cmd}`

Comments

    No one has commented yet.