add workspace to module run events
git-svn-id: file:///home/svn/framework3/trunk@8626 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
6e2e7ed55e
commit
f5446b5d4f
|
@ -203,13 +203,13 @@ class FrameworkEventSubscriber
|
||||||
include GeneralEventSubscriber
|
include GeneralEventSubscriber
|
||||||
def on_module_run(instance)
|
def on_module_run(instance)
|
||||||
if framework.db.active
|
if framework.db.active
|
||||||
|
|
||||||
datastore_hash = {}
|
datastore_hash = {}
|
||||||
instance.datastore.keys.each do |k|
|
instance.datastore.keys.each do |k|
|
||||||
datastore_hash[k.to_s] = instance.datastore[k].to_s
|
datastore_hash[k.to_s] = instance.datastore[k].to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
info = {}
|
info = {}
|
||||||
|
info[:workspace] = framework.db.find_workspace(instance.workspace),
|
||||||
info[:module_name] = instance.refname
|
info[:module_name] = instance.refname
|
||||||
info[:datastore] = datastore_hash
|
info[:datastore] = datastore_hash
|
||||||
report_event(:name => "module_run", :info => info)
|
report_event(:name => "module_run", :info => info)
|
||||||
|
|
Loading…
Reference in New Issue