puppet_webhook 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a886b73c30fd2cac5e6a1081ac59db422211581
4
- data.tar.gz: 5ca3fba7bba2fe6c2a5a1eef8046884a1dedf2bf
3
+ metadata.gz: 7f3451d52653764b10cebb1f14ad0ae809424236
4
+ data.tar.gz: e8032a9dcfea398560a6287ff633da4cba8b3a45
5
5
  SHA512:
6
- metadata.gz: ab31c27456f9b2baf0add372e2fe4de4e155a0a3e7c0a55e8e8a7d0d771c2a459503d44b8b46f4e74d55c869230a4ea63d130d79f62cda6395b6a3c6ac46f15e
7
- data.tar.gz: 744a3adc4e93d37ac6a0ee73dd6b83df293b39c08e3f011357208d24b70fd08affc8111511b11beebe258d9a0f0c05e46e1ef04c2ebb31b50fa09aa3bffe91d7
6
+ metadata.gz: 81723a19aad80a1a2ee1444066d589bec0066d3fd9588e094f5aaba7283a159e5256397b06d056303aed9fcd513bf0eb0f66431c3030bb99c03d55b66c9515c8
7
+ data.tar.gz: f634ffd28d33e10c9f3662829a8476c0814b2ae1f4f9d94632b8010c489315effa5df28491208422f405dab9e7882509e1b5bccae50953f25d85776a88541600
data/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
  Each new release typically also includes the latest modulesync defaults.
5
5
  These should not affect the functionality of the module.
6
6
 
7
+ ## [v1.5.2](https://github.com/voxpupuli/puppet_webhook/tree/v1.5.2) (2018-11-02)
8
+ [Full Changelog](https://github.com/voxpupuli/puppet_webhook/compare/v1.5.1...v1.5.2)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Only load mco and chatops plugins if enabled [\#66](https://github.com/voxpupuli/puppet_webhook/pull/66) ([dhollinger](https://github.com/dhollinger))
13
+
7
14
  ## [v1.5.1](https://github.com/voxpupuli/puppet_webhook/tree/v1.5.1) (2018-11-02)
8
15
  [Full Changelog](https://github.com/voxpupuli/puppet_webhook/compare/v1.5.0...v1.5.1)
9
16
 
@@ -1,11 +1,9 @@
1
- require 'plugins/mcollective'
2
- require 'plugins/chatops'
3
-
4
1
  module Deployments # rubocop:disable Style/Documentation
5
2
  def deploy(branch, deleted)
6
3
  # Currently requires puppet_webhook to be run as a non-root
7
4
  # user with access to running the MCollective client.
8
5
  if settings.use_mcollective
6
+ require 'plugins/mcollective'
9
7
  results = PuppetWebhook::Mcollective.new('r10k',
10
8
  'deploy',
11
9
  {
@@ -43,6 +41,7 @@ module Deployments # rubocop:disable Style/Documentation
43
41
  # Currently requires puppet_webhook to be run as a non-root
44
42
  # user with access to running the MCollective client.
45
43
  if settings.use_mcollective
44
+ require 'plugins/mcollective'
46
45
  results = PuppetWebhook::Mcollective.new('r10k',
47
46
  'deploy',
48
47
  {
data/lib/helpers/tasks.rb CHANGED
@@ -64,6 +64,8 @@ module Tasks # rubocop:disable Style/Documentation
64
64
  def notification(message)
65
65
  return unless settings.chatops || settings.slack_webhook
66
66
 
67
+ require 'plugins/chatops'
68
+
67
69
  slack_settings if settings.chatops == false && settings.slack_webhook != false
68
70
  PuppetWebhook::Chatops.new(settings.chatops_service,
69
71
  settings.chatops_url,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_webhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli