summaryrefslogtreecommitdiff
path: root/lib/oxidized/hook
diff options
context:
space:
mode:
authorWild Kat <wk@users.noreply.github.com>2018-09-12 11:23:45 +0200
committerGitHub <noreply@github.com>2018-09-12 11:23:45 +0200
commit7c02a230dc970c2946770f6893e35c627b6b1ec0 (patch)
treed77395371f89aa8efe01d7fa8a194fb3bf9ed58c /lib/oxidized/hook
parent58c5310ae1406f1b6d7f1794d8574597c8698138 (diff)
add a new line after guard clauses for better visual flow (#1520)
Diffstat (limited to 'lib/oxidized/hook')
-rw-r--r--lib/oxidized/hook/ciscosparkdiff.rb1
-rw-r--r--lib/oxidized/hook/slackdiff.rb1
-rw-r--r--lib/oxidized/hook/xmppdiff.rb1
3 files changed, 3 insertions, 0 deletions
diff --git a/lib/oxidized/hook/ciscosparkdiff.rb b/lib/oxidized/hook/ciscosparkdiff.rb
index e45d7c6..fae2716 100644
--- a/lib/oxidized/hook/ciscosparkdiff.rb
+++ b/lib/oxidized/hook/ciscosparkdiff.rb
@@ -13,6 +13,7 @@ class CiscoSparkDiff < Oxidized::Hook
def run_hook(ctx)
return unless ctx.node
return unless ctx.event.to_s == "post_store"
+
log "Connecting to Cisco Spark"
CiscoSpark.configure do |config|
config.api_key = cfg.accesskey
diff --git a/lib/oxidized/hook/slackdiff.rb b/lib/oxidized/hook/slackdiff.rb
index baaf291..94e624c 100644
--- a/lib/oxidized/hook/slackdiff.rb
+++ b/lib/oxidized/hook/slackdiff.rb
@@ -12,6 +12,7 @@ class SlackDiff < Oxidized::Hook
def run_hook(ctx)
return unless ctx.node
return unless ctx.event.to_s == "post_store"
+
log "Connecting to slack"
Slack.configure do |config|
config.token = cfg.token
diff --git a/lib/oxidized/hook/xmppdiff.rb b/lib/oxidized/hook/xmppdiff.rb
index 6acb172..3440b36 100644
--- a/lib/oxidized/hook/xmppdiff.rb
+++ b/lib/oxidized/hook/xmppdiff.rb
@@ -12,6 +12,7 @@ class XMPPDiff < Oxidized::Hook
def run_hook(ctx)
return unless ctx.node
return unless ctx.event.to_s == "post_store"
+
begin
Timeout.timeout(15) do
gitoutput = ctx.node.output.new