diff options
author | Marc Fournier <marc.fournier@camptocamp.com> | 2012-11-30 10:55:11 +0100 |
---|---|---|
committer | Marc Fournier <marc.fournier@camptocamp.com> | 2012-11-30 10:55:11 +0100 |
commit | 8de8c3d8b93207ee742f375d13b0643e49ccac77 (patch) | |
tree | 9e6acd8b3452852b1b0b8bc33f6346fcdcd23b45 /lib/facter/augeasversion.rb | |
parent | adf6747e6cf8acee9adbafed232d96739a0e3c4f (diff) |
removed augeasversion fact
... as a faster one is included in upstream facter since 1.6.1
$ time RUBYLIB=/var/lib/puppet/lib/ facter augeasversion
0.10.0
real 0m0.700s
user 0m0.658s
sys 0m0.039s
$ time RUBYLIB=/usr/lib/ruby/site_ruby/1.8/ facter augeasversion
0.10.0
real 0m0.013s
user 0m0.008s
sys 0m0.004s
Diffstat (limited to 'lib/facter/augeasversion.rb')
-rw-r--r-- | lib/facter/augeasversion.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/facter/augeasversion.rb b/lib/facter/augeasversion.rb deleted file mode 100644 index 29f8680..0000000 --- a/lib/facter/augeasversion.rb +++ /dev/null @@ -1,13 +0,0 @@ -Facter.add("augeasversion") do - setcode do - - begin - require 'augeas' - aug = Augeas::open('', '', Augeas::NO_LOAD & Augeas::NO_STDINC) - aug.get('/augeas/version') || nil - - rescue LoadError # don't fail if augeas isn't installed - nil - end - end -end |