symfonyAppPipeline: fix hook stages
This commit is contained in:
@ -7,9 +7,9 @@ def call(String name) {
|
||||
return
|
||||
}
|
||||
def hook = load(filepath)
|
||||
if(hook.metaClass.respondsTo(hook, 'exec')) {
|
||||
if (hook.metaClass.respondsTo(hook, 'exec')) {
|
||||
hook.exec()
|
||||
} else {
|
||||
error("Hook script '${filepath}' exists but does not expose an exec() function.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user