diff options
author | Mukta A <mukta.aphale@clogeny.com> | 2013-09-03 14:13:38 +0530 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-09-03 15:28:49 -0700 |
commit | fa11247951c864fd9062ed4cde513175f1ef27df (patch) | |
tree | 24646551ce6b6899be03e1c4520b315f07a34d12 /spec/support | |
parent | d4474142e3260e3a55326a8294c632a4f5d04518 (diff) | |
download | chef-fa11247951c864fd9062ed4cde513175f1ef27df.tar.gz |
Added a new method to check for suse platform for testing
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/platform_helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb index b6afb5e4ff..1501a162e0 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -91,3 +91,7 @@ def selinux_enabled? return false end end + +def suse? + File.exists?("/etc/SuSE-release") +end |