class Chef::Provider::User::MacUser::Plist

Constants

DSCL_PROPERTY_MAP

Attributes

plist_hash[RW]
property_map[RW]

Public Class Methods

new(plist_hash = {}, property_map = DSCL_PROPERTY_MAP) click to toggle source
# File lib/chef/provider/user/mac.rb, line 654
def initialize(plist_hash = {}, property_map = DSCL_PROPERTY_MAP)
  @plist_hash = plist_hash
  @property_map = property_map
end

Public Instance Methods

[](key)
Alias for: get
[]=(key, value)
Alias for: set
get(key) click to toggle source
# File lib/chef/provider/user/mac.rb, line 659
def get(key)
  return nil unless property_map.key?(key)

  plist_hash[property_map[key]]
end
Also aliased as: []
set(key, value) click to toggle source
# File lib/chef/provider/user/mac.rb, line 666
def set(key, value)
  return nil unless property_map.key?(key)

  plist_hash[property_map[key]] = [ value ]
end
Also aliased as: []=