From 62c04b47128009f80024226b1eb75a9f9f9db8c9 Mon Sep 17 00:00:00 2001 From: Thom May Date: Wed, 10 Aug 2016 10:58:28 +0100 Subject: Create and delete yum repositories Signed-off-by: Thom May --- spec/support/platform_helpers.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/support') diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb index 4b727a18ca..62b262b8a7 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -126,6 +126,10 @@ def unix? !windows? end +def linux? + !!(RUBY_PLATFORM =~ /linux/) +end + def os_x? !!(RUBY_PLATFORM =~ /darwin/) end -- cgit v1.2.1