From f1057ac7543e24d3e51727f32bde09fddd335a29 Mon Sep 17 00:00:00 2001 From: username-is-already-taken2 Date: Thu, 25 May 2017 21:46:53 +0100 Subject: [PATCH] Amended the process resource to skip on windows Signed-off-by: username-is-already-taken2 --- lib/resources/processes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/resources/processes.rb b/lib/resources/processes.rb index 6b008c6c5..8de7c0da6 100644 --- a/lib/resources/processes.rb +++ b/lib/resources/processes.rb @@ -32,6 +32,8 @@ module Inspec::Resources @list = all_cmds.find_all do |hm| hm[:command] =~ grep end + + return skip_resource 'The `processes` resource is not supported on your OS yet.' if inspec.os.windows? end def to_s