rubiojr-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 +4 -0
- data/bin/chef_node_fs_usage +2 -2
- data/chef_knives.gemspec +1 -1
- data/lib/chef/knives.rb +1 -1
- metadata +2 -3
data/History.txt
CHANGED
data/bin/chef_node_fs_usage
CHANGED
@@ -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
data/lib/chef/knives.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubiojr-chef_knives
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Rubio
|
@@ -49,7 +49,6 @@ files:
|
|
49
49
|
- lib/chef/knives.rb
|
50
50
|
has_rdoc: false
|
51
51
|
homepage: http://github.com/rubiojr/chef-knives
|
52
|
-
licenses:
|
53
52
|
post_install_message:
|
54
53
|
rdoc_options:
|
55
54
|
- --main
|
@@ -71,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
70
|
requirements: []
|
72
71
|
|
73
72
|
rubyforge_project: chef_knives
|
74
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.2.0
|
75
74
|
signing_key:
|
76
75
|
specification_version: 3
|
77
76
|
summary: Chef addons to become a cooking master!
|