Merge branch 'development' of gitlab.tp.rulingcom.com:saurabh/orbit4-5

This commit is contained in:
Harry Bomrah 2015-01-12 11:54:52 +05:30
commit 9be7e13774
1 changed files with 3 additions and 3 deletions

View File

@ -2,10 +2,10 @@ namespace :register_with_store do
task :register,[:arg] => :environment do |task,args| task :register,[:arg] => :environment do |task,args|
modules = ModuleApp.all modules = ModuleApp.all
ids = modules.collect{|ma| ma.key} ids = modules.collect{|ma| ma.key}
store_token = Site.first.store_token store_token = Site.first.store_token rescue nil
if !store_token.nil?
module_apps = ModuleApp.all module_apps = ModuleApp.all
exceptions = OrbitStore::MODULE_EXCEPTIONS exceptions = OrbitStore::MODULE_EXCEPTIONS
if !store_token.nil?
params_to_send = {'store_token' => store_token, "apps" => ids} params_to_send = {'store_token' => store_token, "apps" => ids}
uri = URI.parse(OrbitStore::URL) uri = URI.parse(OrbitStore::URL)
http = Net::HTTP.new(uri.host,uri.port) http = Net::HTTP.new(uri.host,uri.port)