comrad 0.1.0 → 0.1.1

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: f8a7c8c56e6699348b75573ab291f298b1b40267
4
- data.tar.gz: 4f27ebddb71d6bad85cc9ea6ec947bc1b1f524b5
3
+ metadata.gz: 1d764f2405cc54fc402db2ea721aaf06f0618e64
4
+ data.tar.gz: c9cdd17e48479bfc8b2e8bf7a80b02159afcbe8e
5
5
  SHA512:
6
- metadata.gz: 7807998016b768f385925a846ad053eb41be367dadb1400936ae5a7eb1746d79f1ecbc129ddf98696071f5a7fc63ccd18b05c6510065a4b25558a240ac576daf
7
- data.tar.gz: a90d91f1dd5542dbd01c964a87305b87949ae2d277dd60500ce778df73a33a2b315d7d7a0518ecb58e5f04799d859ce449308d89e9bb3af1bbca37e390005f0e
6
+ metadata.gz: 58331c3e29042ee858df78513f097301d64b3285197ffc9f0b15e90e5e32371a495ffc86da10ad67ceabe76e933c2c2e5d5c425fd9e66852824d96f637e088e4
7
+ data.tar.gz: c469074647c9914ea46e84537b4f20524f4dfa29184efd5f38b5495593ee3ea32dd72b7046025f69f7597bf7725f205117f503b8641f727fcb64deb3f7c32176
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  Comrad
2
2
  ======
3
3
  [![Build Status](https://travis-ci.org/tas50/Comrad.svg)](https://travis-ci.org/tas50/Comrad)
4
+ [![Gem Version](https://badge.fury.io/rb/comrad.svg)](http://badge.fury.io/rb/comrad)
4
5
 
5
6
  Application to sync changes from git to Chef Server via Jenkins
6
7
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'comrad'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.date = Date.today.to_s
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.extra_rdoc_files = ['README.md', 'LICENSE']
@@ -22,6 +22,7 @@ module Comrad
22
22
  # send notifications to slack
23
23
  class Notifier
24
24
  def self::configure
25
+ validate_config
25
26
  Slack::Post.configure(
26
27
  webhook_url: Config.config['slack']['webhook_url'],
27
28
  username: 'comrad',
@@ -58,5 +59,13 @@ module Comrad
58
59
 
59
60
  [attach]
60
61
  end
62
+
63
+ # Ensure the slack config is present
64
+ def self::validate_config
65
+ unless Config.config['slack']['webhook_url'] && Config.config['slack']['channel']
66
+ puts "\nSlack config in comrad.yml is incomplete. Cannot continue.".to_red
67
+ exit!
68
+ end
69
+ end
61
70
  end
62
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comrad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Smith