zabbix-cloudwatch 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20e69415398bb85c6d7d8541c92b271de26b64d3
4
- data.tar.gz: 94a08809d18903fe2d358e1601761dd75957ee96
3
+ metadata.gz: df87bd47ab6fdee6de4d821369699e3f6d07aea0
4
+ data.tar.gz: 6dfa76015b98cd65c7bd09b4e1fc388fc0b295bc
5
5
  SHA512:
6
- metadata.gz: 11784a6df6ded7584105843bdadd452cf48c4b78cda4775e6ca2041c918fec769702801dac08132da44a3615b101f48bacc7857e21200810a82803df9b6198fa
7
- data.tar.gz: 298df00a3a466cdb900220e31a3db8a82f93d50feb5fabf6f2eac08809867b110470fae2f26cb0ee880aba0293b54920d2adc2d169a749363adcedc3c91bfea2
6
+ metadata.gz: 1cabb7234ad5dd2c225cfa376f40a821c4ca5b01b77b09db811fcf65dbe135f606b2102f737c4fdaa946352ded5e34364a94c390b844ffcd12aa8ebeb95af624
7
+ data.tar.gz: ed410290939f9081a8ea2a978941303d96b8c03dd1d4e5e99d887e9387ff5fb971a693af894f0954a885eeb2e649880760134d3426cb9698d0d07b9f0014cd06
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zabbix-cloudwatch (0.0.3)
4
+ zabbix-cloudwatch (0.0.4)
5
5
  aws-sdk (~> 1.21.0)
6
6
  getopt (~> 1.4.1)
7
7
 
@@ -28,7 +28,8 @@ opts = Getopt::Long.getopts(
28
28
  ["--statistic",Getopt::REQUIRED],
29
29
  ["--aws-access-key", Getopt::REQUIRED],
30
30
  ["--aws-secret-key", Getopt::REQUIRED],
31
- ["--aws-region", Getopt::REQUIRED]
31
+ ["--aws-region", Getopt::REQUIRED],
32
+ ["--version"]
32
33
  )
33
34
 
34
35
 
@@ -56,6 +57,11 @@ if opts.key?"help" or opts.empty?
56
57
  exit 0
57
58
  end
58
59
 
60
+ if opts.key?"version"
61
+ puts ZabbixCloudwatch::VERSION
62
+ exit 0
63
+ end
64
+
59
65
  unless opts.key?"aws-access-key"
60
66
  opts["aws-access-key"] = (@@aws_access_key == '' && ENV["AWS_ACCESS_KEY_ID"]) || @@aws_access_key
61
67
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module ZabbixCloudwatch
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Randy D. Wallace Jr.