foreman_hooks 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/foreman_hooks/callback_hooks.rb +1 -1
- data/lib/foreman_hooks.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97c36beb194d82ae065e7406562726963aaf6879
|
4
|
+
data.tar.gz: 67f0434ca73f34dbc158ef028fcf4e2120c5d790
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54368599bd9b7b0624b51be7a574c237609d76b9c60a2f696f4a6947797fe17c4eb2241f7b8c7867614cb119e8b1248514824063d17f9e9c00daa100b6e1507c
|
7
|
+
data.tar.gz: 11a59aa886d2d1b6129837c18ecda49e7ea40767c5fc09edf3db3fba4e3934cebd1aef5116ae3b6d756227324cf94a69d78301f1c62b111cae661ab3d83e9a81
|
@@ -9,7 +9,7 @@ module ForemanHooks::CallbackHooks
|
|
9
9
|
filter, name = event.to_s.split('_', 2)
|
10
10
|
next unless name
|
11
11
|
|
12
|
-
set_callback name, "#{event}_hooks"
|
12
|
+
set_callback name.to_sym, filter.to_sym, "#{event}_hooks".to_sym
|
13
13
|
define_method("#{event}_hooks") do
|
14
14
|
Rails.logger.debug "Observed #{event} hook on #{self}"
|
15
15
|
return unless hooks = ForemanHooks.find_hooks(self.class, event)
|
data/lib/foreman_hooks.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_hooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominic Cleal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Plugin engine for Foreman that enables running custom hook scripts on
|
14
14
|
Foreman events
|