module ChefUtils::DSL::OS

Public Instance Methods

darwin?(node = __getnode) click to toggle source

Determine if the current node is Darwin.

@param [Chef::Node] node the node to check @since 15.5

@return [Boolean]

# File lib/chef-utils/dsl/os.rb, line 51
def darwin?(node = __getnode)
  node["os"] == "darwin"
end
linux?(node = __getnode) click to toggle source

Determine if the current node is Linux.

@param [Chef::Node] node the node to check @since 15.5

@return [Boolean]

# File lib/chef-utils/dsl/os.rb, line 40
def linux?(node = __getnode)
  node["os"] == "linux"
end