chef_knives 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.3.1 / 2009-11-09
2
+
3
+ * fixes in chef_node_fs_usage
4
+
1
5
  === 0.3 / 2009-11-09
2
6
 
3
7
  * chef_node_find script added
@@ -44,13 +44,13 @@ 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 rpc_pipefs].include? fsattrs['fs_type'])
47
+ if not (%w[proc binfmt_misc 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
50
  usage = fsattrs['percent_used'].chomp.strip.gsub('%','').to_i
51
51
  (matching_fs << " #{fsname}".ljust(50) + fsattrs['percent_used']) if usage > uthres
52
52
  else
53
- matching_fs << " #{fsname}".ljust(50) + fsattrs['percent_used']
53
+ matching_fs << " #{fsname}".ljust(50) + (fsattrs['percent_used'] || '')
54
54
  end
55
55
  end
56
56
  end
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"
3
+ s.version = "0.3.1"
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'
3
+ VERSION = '0.3.1'
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"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rubio