From ce9a3a152fc180e2de297367ea1a87477eae9338 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 26 Jan 2013 13:04:42 -0200 Subject: More lib updates --- lib/facter/mysql_exists.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 lib/facter/mysql_exists.rb (limited to 'lib/facter/mysql_exists.rb') diff --git a/lib/facter/mysql_exists.rb b/lib/facter/mysql_exists.rb new file mode 100644 index 0000000..d08dabe --- /dev/null +++ b/lib/facter/mysql_exists.rb @@ -0,0 +1,5 @@ +Facter.add("mysql_exists") do + setcode do + File.exist? '/usr/bin/mysql' + end +end -- cgit v1.2.3