summaryrefslogtreecommitdiffstats
path: root/cloudmasterd/lib
diff options
context:
space:
mode:
authorMatthew Hicks <mhicks@mhicks-host.usersys.redhat.com>2008-06-22 18:29:12 -0400
committerMatthew Hicks <mhicks@mhicks-host.usersys.redhat.com>2008-06-22 18:29:12 -0400
commitd0e4ee404845ba175c9a66db7a48ac95b341f464 (patch)
treebcc2d32294b212d8eabb648f2dd3286c6068d846 /cloudmasterd/lib
parent6b845e294225460c64932ec3f72a626bcfe50252 (diff)
downloadtools-d0e4ee404845ba175c9a66db7a48ac95b341f464.tar.gz
tools-d0e4ee404845ba175c9a66db7a48ac95b341f464.tar.xz
tools-d0e4ee404845ba175c9a66db7a48ac95b341f464.zip
Removing thread functionality - doesn't work with the service
Diffstat (limited to 'cloudmasterd/lib')
-rw-r--r--cloudmasterd/lib/cloudmasterd.rb19
-rw-r--r--cloudmasterd/lib/cloudmasterd/version.rb2
2 files changed, 12 insertions, 9 deletions
diff --git a/cloudmasterd/lib/cloudmasterd.rb b/cloudmasterd/lib/cloudmasterd.rb
index 2a32879..86182eb 100644
--- a/cloudmasterd/lib/cloudmasterd.rb
+++ b/cloudmasterd/lib/cloudmasterd.rb
@@ -281,6 +281,9 @@ module Cloudmasterd::Controllers
class Status < REST 'status'
def list
+ # TODO: Figure out how to move this to a background thread
+ Cloudmasterd::Helpers::Syncer.run
+
@machines = {}
Machine.find(:all, :select => "distinct email").map{|x| x.email}.each do |email|
@machines[email] = Machine.find(:all, :conditions => "email = '#{email}'", :order => 'cloud')
@@ -388,8 +391,8 @@ module Cloudmasterd::Views
end
def Cloudmasterd.create
- ActiveRecord::Base.logger = Logger.new(STDOUT)
- ActiveRecord::Base.colorize_logging = true
+ #ActiveRecord::Base.logger = Logger.new(STDOUT)
+ #ActiveRecord::Base.colorize_logging = true
ActiveRecord::Base.pluralize_table_names = false
ActiveRecord::Base.establish_connection(
@@ -402,11 +405,11 @@ def Cloudmasterd.create
Cloudmasterd::Helpers::Syncer.run
end
-Thread.new do
- while true do
- Cloudmasterd::Helpers::Syncer.run
- sleep 5
- end
-end
+#Thread.new do
+# while true do
+# Cloudmasterd::Helpers::Syncer.run
+# sleep 5
+# end
+#end
Cloudmasterd.start_picnic
diff --git a/cloudmasterd/lib/cloudmasterd/version.rb b/cloudmasterd/lib/cloudmasterd/version.rb
index 5bb4764..d45b0fd 100644
--- a/cloudmasterd/lib/cloudmasterd/version.rb
+++ b/cloudmasterd/lib/cloudmasterd/version.rb
@@ -2,7 +2,7 @@ module Cloudmasterd #:nodoc:
module VERSION #:nodoc:
MAJOR = 0
MINOR = 1
- TINY = 6
+ TINY = 7
STRING = [MAJOR, MINOR, TINY].join('.')
end