module ChefUtils::DSL::OS
Public Instance Methods
Source
# File lib/chef-utils/dsl/os.rb, line 51 def darwin?(node = __getnode) node["os"] == "darwin" end
Determine if the current node is Darwin.
@param [Chef::Node] node the node to check @since 15.5
@return [Boolean]
Source
# File lib/chef-utils/dsl/os.rb, line 40 def linux?(node = __getnode) node["os"] == "linux" end
Determine if the current node is Linux.
@param [Chef::Node] node the node to check @since 15.5
@return [Boolean]