diff options
author | mh <mh@immerda.ch> | 2009-10-31 15:16:40 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-10-31 15:16:40 +0100 |
commit | 304b199b700f130925c09c330a63fc6c4745321b (patch) | |
tree | 427b3f2febd501dfbec48b3e02a5483608c685db /lib/facter | |
parent | 62e9001ab2288b66ee0f84ac50a789301f658485 (diff) |
move plugin directory to fit new 0.25 style
Diffstat (limited to 'lib/facter')
-rw-r--r-- | lib/facter/mysql.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/facter/mysql.rb b/lib/facter/mysql.rb new file mode 100644 index 0000000..e262ec1 --- /dev/null +++ b/lib/facter/mysql.rb @@ -0,0 +1,8 @@ +Facter.add("mysql_exists") do + ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin" + + setcode do + mysqlexists = system "which mysql > /dev/null 2>&1" + ($?.exitstatus == 0) + end +end |