summaryrefslogtreecommitdiffstats
path: root/cloudmasterd/lib
diff options
context:
space:
mode:
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