class Chef::Resource::WindowsAdJoin
Public Instance Methods
clarify_reboot(reboot_action)
click to toggle source
This resource historically took `:immediate` and `:delayed` as arguments to the reboot property but then tried to shove that straight to the `reboot` resource which objected strenuously
# File lib/chef/resource/windows_ad_join.rb, line 104 def clarify_reboot(reboot_action) case reboot_action when :immediate :reboot_now when :delayed :request_reboot else reboot_action end end
on_domain?()
click to toggle source
# File lib/chef/resource/windows_ad_join.rb, line 96 def on_domain? node_domain = powershell_out!("(Get-WmiObject Win32_ComputerSystem).Domain") raise "Failed to check if the system is joined to the domain #{new_resource.domain_name}: #{node_domain.stderr}}" if node_domain.error? node_domain.stdout.downcase.strip == new_resource.domain_name.downcase end
sensitive?()
click to toggle source
# File lib/chef/resource/windows_ad_join.rb, line 115 def sensitive? !!new_resource.sensitive end