diff options
author | mh <mh@immerda.ch> | 2009-10-31 15:16:31 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-10-31 15:16:31 +0100 |
commit | 11c66b121dbd6a9ce1cb77067d2844839b9c609f (patch) | |
tree | 394920e4918b110fe4dc9214c828f826a55d9761 /plugins/facter/interfaces.rb | |
parent | 23b3b3caca4b00f900ed323e7186453eb23ff6f6 (diff) |
move plugin directory to fit new 0.25 style
Diffstat (limited to 'plugins/facter/interfaces.rb')
-rwxr-xr-x | plugins/facter/interfaces.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/plugins/facter/interfaces.rb b/plugins/facter/interfaces.rb deleted file mode 100755 index a498d64..0000000 --- a/plugins/facter/interfaces.rb +++ /dev/null @@ -1,13 +0,0 @@ -# return the set of active interfaces as an array -Facter.add("interfaces") do - setcode do - `ip -o link show`.split(/\n/).collect do |line| - value = nil - matches = line.match(/^\d*: ([^:]*): <(.*,)?UP(,.*)?>/) - if !matches.nil? - value = matches[1] - end - value - end.compact.sort.join(" ") - end -end |