diff options
author | pv2b <pvz@pvz.pp.se> | 2017-11-20 09:16:44 +0100 |
---|---|---|
committer | Neil Lathwood <neil@lathwood.co.uk> | 2017-11-20 08:16:44 +0000 |
commit | 115764f3b2d20b3732a8d81c38afaea19c11dad8 (patch) | |
tree | 2579e2406db30fae1030f6a30991c2b2bd173d74 /lib | |
parent | 8bef76580a3e848836f3f12fe9e6c50380dbe01e (diff) |
feature: Added model information to exec hook (#1105)
* Add OX_NODE_MODEL to exec hook
* Update docs to reflect added OX_NODE_MSG to hook
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/hook/exec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/hook/exec.rb b/lib/oxidized/hook/exec.rb index a9a5950..3f984c2 100644 --- a/lib/oxidized/hook/exec.rb +++ b/lib/oxidized/hook/exec.rb @@ -71,6 +71,7 @@ class Exec < Oxidized::Hook "OX_NODE_FROM" => ctx.node.from.to_s, "OX_NODE_MSG" => ctx.node.msg.to_s, "OX_NODE_GROUP" => ctx.node.group.to_s, + "OX_NODE_MODEL" => ctx.node.model.class.name, "OX_REPO_COMMITREF" => ctx.commitref.to_s, "OX_REPO_NAME" => ctx.node.repo.to_s, ) |