awsbix 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/bin/add-hosts.rb +12 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dacaf018099f4f8dbd311f70bf345044c9b9c734
4
- data.tar.gz: 6109f216c259a224df60ccf7ca66be16dc651022
3
+ metadata.gz: 2d6113718958da1b79334ac91096b85cb3ca9ae3
4
+ data.tar.gz: f2cac0200e65580e987f140feb6a3fc36353a3c2
5
5
  SHA512:
6
- metadata.gz: 0c8c2b70a0c99a19a1a1d2985017d1dd5475c98826eb0242f3444de0cb47e01560443d725f5056a3807bc55e2ed8624d32eb46e033ed8eaca72cd6db5877af04
7
- data.tar.gz: 3685302f12ab9737b88164ea8d7e2c83b21f34c418ab5ef973982612975634cb794cdb1f3ce58ad9c75f052f33beea593d5710179f4dc2f0387905b7cfd02804
6
+ metadata.gz: 20a80988ede5cc09c00f2391ba5dd3c441dae7791ddb5fb89779851998c95937a23f87f9015cf34be52af8c0cc2ee1a4de07029cace6726ac82eb5ffb7d8abb5
7
+ data.tar.gz: 5ee787cc7828d2056f440b0d68cfe08d38079715abf31beedc00a5146c500b02b7acd8377746281becd79f8016e27ce3fb994467477fcc241b445cfaa7bc799c
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  zabbix-aws
2
2
  ====
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/awsbix.svg)](http://badge.fury.io/rb/awsbix)
5
+
4
6
  Adds/Removes AWS cloud hosts to Zabbix
5
7
 
6
8
  see bin/config.yaml for example configuration
@@ -16,9 +16,20 @@
16
16
  # You should have received a copy of the GNU General Public License
17
17
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  #
19
+ require 'optparse'
19
20
  require 'awsbix'
20
21
 
21
- awsbix = Awsbix.new('bin/config.yaml')
22
+ options = {}
23
+ OptionParser.new do |opts|
24
+ opts.banner = "Usage: #{$0} [options]"
25
+ opts.on("-c CONFIG","--config", "YAML config") do |c|
26
+ options[:config] = c
27
+ end
28
+ end.parse!
29
+
30
+ config = options[:config] ||= 'bin/config.yaml'
31
+
32
+ awsbix = Awsbix.new(config)
22
33
 
23
34
  # connect to host defined in config.yaml
24
35
  awsbix.zbx_connect()
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsbix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Llewellyn-Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-26 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk