chef_knives 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS ADDED
@@ -0,0 +1,3 @@
1
+ Sergio Rubio <sergio@rubio.name>
2
+ blog: http://rubiojr.netcorex.org/blog
3
+ twitter: http://twitter.com/rubiojr
data/History.txt CHANGED
@@ -1,12 +1,17 @@
1
- === 0.3.2 / 2009-11-09
1
+ === 0.3.3 / 2009-11-11
2
+
3
+ * fixes in chef_node_find
4
+ * added --no-ifaces flag to chef_node_find
5
+
6
+ === 0.3.2 / 2009-11-11
2
7
 
3
8
  * fixes in chef_node_fs_usage
4
9
 
5
- === 0.3.1 / 2009-11-09
10
+ === 0.3.1 / 2009-11-11
6
11
 
7
12
  * fixes in chef_node_fs_usage
8
13
 
9
- === 0.3 / 2009-11-09
14
+ === 0.3 / 2009-11-10
10
15
 
11
16
  * chef_node_find script added
12
17
 
data/Manifest.txt CHANGED
@@ -1,3 +1,4 @@
1
+ AUTHORS
1
2
  History.txt
2
3
  Manifest.txt
3
4
  README.txt
data/bin/chef_node_find CHANGED
@@ -35,10 +35,15 @@ def main
35
35
 
36
36
  option :match do
37
37
  default '.*'
38
- long '--match'
38
+ long '--match=REGEXP'
39
39
  short '-m'
40
40
  desc 'Match only the nodes with an FQDN matching this value'
41
41
  end
42
+
43
+ option :no_ifaces do
44
+ long '--no-ifaces'
45
+ desc 'Do not print network interfaces'
46
+ end
42
47
  end
43
48
 
44
49
  db = CouchRest.database(CHEF_DB_URL)
@@ -55,14 +60,16 @@ def main
55
60
  puts "Uptime: " + node.uptime
56
61
  puts "Memory Total: " + humanize_bytes(node.memory.total.gsub('kB','').to_i * 1024)
57
62
  puts "Memory Free: " + humanize_bytes(node.memory.free.gsub('kB','').to_i * 1024)
58
- puts "Network Interfaces: "
59
63
  puts "Is a Virtual Machine?: #{(node.virtualization.role == 'guest') rescue false}"
60
- node.network.interfaces.each_key do |iface|
61
- next unless node.network.interfaces[iface][:addresses]
62
- puts " #{iface}"
63
- node.network.interfaces[iface].addresses.each_key do |a|
64
- print " #{a}".ljust(30)
65
- puts " [#{node.network.interfaces[iface].addresses[a].family}]"
64
+ if not Choice.choices[:no_ifaces]
65
+ puts "Network Interfaces: "
66
+ node.network.interfaces.each_key do |iface|
67
+ next unless node.network.interfaces[iface][:addresses]
68
+ puts " #{iface}"
69
+ node.network.interfaces[iface].addresses.each_key do |a|
70
+ print " #{a}".ljust(30)
71
+ puts " [#{node.network.interfaces[iface].addresses[a].family}]"
72
+ end
66
73
  end
67
74
  end
68
75
  puts
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.2"
3
+ s.version = "0.3.3"
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.2'
3
+ VERSION = '0.3.3'
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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rubio
@@ -37,6 +37,7 @@ extra_rdoc_files:
37
37
  - Manifest.txt
38
38
  - README.txt
39
39
  files:
40
+ - AUTHORS
40
41
  - History.txt
41
42
  - Manifest.txt
42
43
  - README.txt