chef_knives 0.3.1 → 0.3.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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.3.2 / 2009-11-09
2
+
3
+ * fixes in chef_node_fs_usage
4
+
1
5
  === 0.3.1 / 2009-11-09
2
6
 
3
7
  * fixes in chef_node_fs_usage
@@ -44,10 +44,10 @@ def main
44
44
  next if node.fqdn !~ /#{Choice.choices[:match]}/
45
45
  matching_fs = []
46
46
  node.filesystem.each do |fsname,fsattrs|
47
- if not (%w[proc binfmt_misc sysfs tmpfs devpts usbfs rpc_pipefs].include? fsattrs['fs_type'])
47
+ if not (%w[proc configfs binfmt_misc none sysfs tmpfs devpts usbfs rpc_pipefs].include? fsattrs['fs_type'])
48
48
  if Choice.choices[:usage_threshold]
49
49
  uthres = Choice.choices[:usage_threshold].to_i
50
- usage = fsattrs['percent_used'].chomp.strip.gsub('%','').to_i
50
+ usage = fsattrs['percent_used'].chomp.strip.gsub('%','').to_i rescue 100
51
51
  (matching_fs << " #{fsname}".ljust(50) + fsattrs['percent_used']) if usage > uthres
52
52
  else
53
53
  matching_fs << " #{fsname}".ljust(50) + (fsattrs['percent_used'] || '')
data/chef_knives.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{chef_knives}
3
- s.version = "0.3.1"
3
+ s.version = "0.3.2"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Sergio Rubio"]
data/lib/chef/knives.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Chef
2
2
  module Knives
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef_knives
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rubio