forked from saurabh/orbit4-5
Merge branch 'development' of gitlab.tp.rulingcom.com:saurabh/orbit4-5
This commit is contained in:
commit
9be7e13774
|
@ -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
|
||||||
module_apps = ModuleApp.all
|
|
||||||
exceptions = OrbitStore::MODULE_EXCEPTIONS
|
|
||||||
if !store_token.nil?
|
if !store_token.nil?
|
||||||
|
module_apps = ModuleApp.all
|
||||||
|
exceptions = OrbitStore::MODULE_EXCEPTIONS
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue