git-svn-id: file:///home/svn/framework3/trunk@8660 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2010-02-26 18:45:24 +00:00
parent 99f4507405
commit be0fc489b1
1 changed files with 9 additions and 6 deletions

View File

@ -203,12 +203,15 @@ class FrameworkEventSubscriber
include GeneralEventSubscriber
def on_module_run(instance)
if framework.db.active
datastore_hash = instance.datastore.to_h
info = {}
info[:module_name] = instance.refname
info[:datastore] = datastore_hash
report_event(:name => "module_run", :info => info, :workspace => framework.db.find_workspace(instance.workspace))
event = {
:workspace => framework.db.find_workspace(session.workspace),
:name => "module_run",
:info => {
:module_name => instance.refname,
:datastore => instance.datastore.to_h
}
}
report_event(event)
end
end