From 26671b27b3c3fed19e1d2cc4ff067832fe7b9bb9 Mon Sep 17 00:00:00 2001 From: Nishu Goyal Date: Tue, 1 Jul 2014 00:19:22 +0530 Subject: [PATCH] Existing code was giving exception on mac Existing code was giving exception on mac for Factor v2.1.0 bench_press-0.3.1/lib/bench_press/system_information.rb:77:in `mac?': undefined method `kernel' for Facter:Module (NoMethodError) --- lib/bench_press/system_information.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bench_press/system_information.rb b/lib/bench_press/system_information.rb index a4864e2..92411b3 100644 --- a/lib/bench_press/system_information.rb +++ b/lib/bench_press/system_information.rb @@ -74,7 +74,7 @@ def identifier end def mac? - Facter.kernel =~ /Darwin/ + facts['kernel'] =~ /Darwin/ end end end