lib/puppet/provider/macauthdb/default.rb
# Reconstitute the list of flags as an Integer
# - accepts a Hash of normalized data
Reconstitute the list of flags as an Integer
accepts a Hash of normalized data
Reconstitute the list of flags as an Integer accepts a Hash of normalized data
def pack_flags(flags)
      FLAGS.each_with_index.inject(0) do |memo,(key,i)|
        memo |= (1 << i) if flags[key]
        memo
      end
    end
def pack_flags ( flags ) FLAGS . each_with_index . inject ( 0 ) do | memo , ( key , i ) | memo |= ( 1 << i ) if flags [ key ] memo end end
Reconstitute the list of flags as an Integer
 accepts a Hash of normalized data
Reconstitute the list of flags as an Integer accepts a Hash of normalized data
flags