class Chef::Resource::WindowsUac

Public Instance Methods

bool_to_reg(bool) click to toggle source

converts a Ruby true/false to a 1 or 0

@return [Integer] 1:true, 0: false

# File lib/chef/resource/windows_uac.rb, line 92
def bool_to_reg(bool)
  bool ? 1 : 0
end