Module: RuboCop::Chef::PlatformHelpers
- Included in:
- RuboCop::Cop::Chef::Correctness::InvalidPlatformFamilyHelper, RuboCop::Cop::Chef::Correctness::InvalidPlatformFamilyInCase, RuboCop::Cop::Chef::Correctness::InvalidPlatformHelper, RuboCop::Cop::Chef::Correctness::InvalidPlatformInCase, RuboCop::Cop::Chef::Correctness::InvalidPlatformMetadata, RuboCop::Cop::Chef::Correctness::InvalidPlatformValueForPlatformFamilyHelper, RuboCop::Cop::Chef::Correctness::InvalidPlatformValueForPlatformHelper
- Defined in:
- lib/rubocop/chef/platform_helpers.rb
Overview
common helpers for Platforms in Chef Infra Cookbooks
Constant Summary collapse
- INVALID_PLATFORM_FAMILIES =
a mapping of invalid platform family values to valid platform family
{ 'archlinux' => 'arch', 'centos' => 'rhel', 'darwin' => 'mac_os_x', 'debuan' => 'debian', 'linux' => nil, 'mac_os_x_server' => 'mac_os_x', 'macos' => 'mac_os_x', 'macosx' => 'mac_os_x', 'mingw32' => 'windows', 'mswin' => 'windows', 'opensuse' => 'suse', 'opensuseleap' => 'suse', 'oracle' => 'rhel', 'redhat' => 'rhel', 'scientific' => 'rhel', 'sles' => 'suse', 'ubuntu' => 'debian', }.freeze
- INVALID_PLATFORMS =
a mapping of invalid platforms values to valid platforms
{ 'aws' => nil, 'archlinux' => 'arch', 'amazonlinux' => 'amazon', 'darwin' => 'mac_os_x', 'debuan' => 'debian', 'mingw32' => 'windows', 'mswin' => 'windows', 'macos' => 'mac_os_x', 'macosx' => 'mac_os_x', 'mac_os_x_server' => 'mac_os_x', 'mint' => 'linuxmint', 'linux' => nil, 'oel' => 'oracle', 'oraclelinux' => 'oracle', 'rhel' => 'redhat', 'schientific' => 'scientific', 'scientificlinux' => 'scientific', 'sles' => 'suse', 'solaris' => 'solaris2', 'ubundu' => 'ubuntu', 'ubunth' => 'ubuntu', 'ubunutu' => 'ubuntu', 'windwos' => 'windows', 'xcp' => nil, }.freeze