Method: Chef::Provisioning::Machine#detect_os

Defined in:
lib/chef/provisioning/machine.rb,
lib/chef/provisioning/machine/unix_machine.rb

#detect_os(action_handler) ⇒ Object

TODO get rid of the action_handler attribute, that is ridiculous Detect the OS on the machine (assumes the machine is up) Returns a triplet:

platform, platform_version, machine_architecture = machine.detect_os(action_handler)

This triplet is suitable for passing to the Chef metadata API: www.chef.io/chef/metadata?p=PLATFORM&pv=PLATFORM_VERSION&m=MACHINE_ARCHITECTURE



107
108
109
# File 'lib/chef/provisioning/machine.rb', line 107

def detect_os(action_handler)
  raise "detect_os not overridden on #{self.class}"
end