luis@970: luis@1453: # Log user and project information luis@1453: # luis@1453: # Invoke with e.g. luis@1453: # luis@1453: # ./script/rails runner -e production extra/soundsoftware/get-statistics.rb luis@970: # luis@970: luis@1453: projectStats = {:all => Project.active.all.count, :private => Project.active.find(:all, :conditions => {:is_public => false}).count} luis@970: luis@1453: userStats = {:all => User.active.all.count} Chris@1002: luis@1453: stats = {:date => Date.today, :projects => projectStats, :users => userStats}.to_json Chris@1002: luis@1453: print "#{stats}\n" Chris@1002: