Module: ChefUtils

Extended by:
ChefUtils
Includes:
DSL::Architecture, DSL::Cloud, DSL::DefaultPaths, DSL::Introspection, DSL::OS, DSL::Platform, DSL::PlatformFamily, DSL::PlatformVersion, DSL::TrainHelpers, DSL::Virtualization, DSL::Which, DSL::Windows
Included in:
ChefUtils
Defined in:
lib/chef-utils.rb,
lib/chef-utils/dist.rb,
lib/chef-utils/mash.rb,
lib/chef-utils/dsl/os.rb,
lib/chef-utils/version.rb,
lib/chef-utils/internal.rb,
lib/chef-utils/dsl/cloud.rb,
lib/chef-utils/dsl/which.rb,
lib/chef-utils/dsl/service.rb,
lib/chef-utils/dsl/windows.rb,
lib/chef-utils/dsl/platform.rb,
lib/chef-utils/parallel_map.rb,
lib/chef-utils/version_string.rb,
lib/chef-utils/dsl/path_sanity.rb,
lib/chef-utils/dsl/architecture.rb,
lib/chef-utils/dsl/default_paths.rb,
lib/chef-utils/dsl/introspection.rb,
lib/chef-utils/dsl/train_helpers.rb,
lib/chef-utils/dsl/virtualization.rb,
lib/chef-utils/dsl/platform_family.rb,
lib/chef-utils/dsl/platform_version.rb

Overview

Copyright

Copyright 2017, Noah Kantrowitz

License

Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Modules: DSL, Dist, Internal, ParallelMap Classes: DefaultThreadPool, Mash, VersionString

Constant Summary collapse

CANARY =

ChefUtils::DSL::Service is deliberately excluded

1
CHEFUTILS_ROOT =
File.expand_path("..", __dir__)
VERSION =
"18.4.12"

Method Summary

Methods included from DSL::Windows

#powershell_version, #windows_nt_version, #windows_server?, #windows_server_core?, #windows_workstation?

Methods included from DSL::Which

#where, #which

Methods included from DSL::Virtualization

#guest?, #hypervisor?, #kvm?, #kvm_host?, #lxc?, #lxc_host?, #openvz?, #openvz_host?, #parallels?, #parallels_host?, #physical?, #vagrant?, #vbox?, #vbox_host?, #vmware?, #vmware_desktop?, #vmware_host?, #vmware_vsphere?

Methods included from DSL::TrainHelpers

#dir_exist?, #file_directory?, #file_exist?, #file_open, #file_read

Methods included from DSL::PlatformVersion

#platform_version

Methods included from DSL::PlatformFamily

#aix?, #amazon?, #arch?, #bsd_based?, #debian?, #dragonflybsd?, #fedora?, #fedora_derived?, #freebsd?, #gentoo?, #macos?, #macos_ruby?, #netbsd?, #openbsd?, #redhat_based?, #rhel6?, #rhel7?, #rhel8?, #rhel?, #rpm_based?, #smartos?, #solaris2?, #solaris_based?, #suse?, #windows?, #windows_ruby?

Methods included from DSL::Platform

#aix_platform?, #amazon_platform?, #arch_platform?, #centos_platform?, #centos_stream_platform?, #clearos_platform?, #debian_platform?, #dragonfly_platform?, #fedora_platform?, #freebsd_platform?, #gentoo_platform?, #linuxmint_platform?, #macos_platform?, #netbsd_platform?, #omnios_platform?, #openbsd_platform?, #openindiana_platform?, #opensuse_platform?, #oracle_platform?, #raspbian_platform?, #redhat_platform?, #scientific_platform?, #slackware_platform?, #smartos_platform?, #solaris2_platform?, #suse_platform?, #ubuntu_platform?, #windows_platform?

Methods included from DSL::OS

#darwin?, #linux?

Methods included from DSL::Introspection

#ci?, #docker?, #effortless?, #has_systemd_service_unit?, #has_systemd_unit?, #includes_recipe?, #kitchen?, #systemd?

Methods included from DSL::DefaultPaths

#default_paths

Methods included from DSL::Cloud

#alibaba?, #azure?, #cloud?, #digital_ocean?, #ec2?, #eucalyptus?, #gce?, #linode?, #openstack?, #rackspace?, #softlayer?

Methods included from DSL::Architecture

#_32_bit?, #_64_bit?, #arm?, #armhf?, #i386?, #intel?, #powerpc?, #ppc64?, #ppc64le?, #s390?, #s390x?, #sparc?