circonus 3.4.1 → 3.4.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 (2) hide show
  1. data/bin/circonus-delete-host +6 -6
  2. metadata +2 -2
@@ -4,15 +4,15 @@
4
4
 
5
5
  require 'circonusutil'
6
6
 
7
+ host = nil
7
8
  cu = CirconusUtil.new() { |opts,options|
8
9
  opts.banner = "Usage: #{File.basename($0)} hostname\n"
9
- host = ARGV[0]
10
- if host.nil? or host.empty? then
11
- puts "Missing hostname!"
12
- puts opts
13
- exit -1
14
- end
15
10
  }
11
+ if ARGV.empty? then
12
+ puts "Missing hostname!"
13
+ exit -1
14
+ end
15
+ host = ARGV.pop
16
16
 
17
17
  print "Deleting monitoring for host #{host}\n"
18
18
  cbs = cu.circonus.list_check_bundle({'tags_has'=>"fqdn:#{host.downcase}"})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circonus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.1
4
+ version: 3.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-20 00:00:00.000000000 Z
12
+ date: 2014-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client