diff options
author | ytti <saku@ytti.fi> | 2018-04-25 20:34:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 20:34:10 +0300 |
commit | 96910082ed914ee51f33eaea44dd34f8bf5d11e6 (patch) | |
tree | 63a6229522ad72888b6bbe505786daf7a93558ab /lib/oxidized/hook | |
parent | 60c3408bfc0f6aa5a89013f99e0763719440f29b (diff) | |
parent | 75765bedae8a8511260d43ec7f46edc994899c7c (diff) |
Merge pull request #1308 from wk/restore-compliance
fine tune rubocop to yttis exacting specifications
Diffstat (limited to 'lib/oxidized/hook')
-rw-r--r-- | lib/oxidized/hook/slackdiff.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/hook/slackdiff.rb b/lib/oxidized/hook/slackdiff.rb index 2c5ec14..baaf291 100644 --- a/lib/oxidized/hook/slackdiff.rb +++ b/lib/oxidized/hook/slackdiff.rb @@ -43,7 +43,7 @@ class SlackDiff < Oxidized::Hook # message custom formatted - optional if cfg.has_key?('message') == true log cfg.message - msg = format(cfg.message, :node => ctx.node.name.to_s, :group => ctx.node.group.to_s, :commitref => ctx.commitref, :model => ctx.node.model.class.name.to_s.downcase) + msg = cfg.message % { :node => ctx.node.name.to_s, :group => ctx.node.group.to_s, :commitref => ctx.commitref, :model => ctx.node.model.class.name.to_s.downcase } log msg log "Posting message to #{cfg.channel}" client.chat_postMessage(channel: cfg.channel, text: msg, as_user: true) |