providers/atypical_plist.rb
# Write the items_hash to the spotlight plist files key.
# Params:
#     items_hash (Hash):
Write the items_hash to the spotlight plist files key.
Write the items_hash to the spotlight plist files key .
def write_spotlight_items(items_hash)
    the_user = get_user_name()
    filename = get_spotlight_plist_filename()
    str_out = key_value_hash_to_str(items_hash)
    the_command = "defaults write #{filename} #{$spotlight_key}" \
                  " -array #{str_out}"
    do_log("write_spotlight_items: command is: #{the_command}\n")
    execute "Writing ordered list" do
        user the_user
        command the_command
    end
end
def write_spotlight_items ( items_hash ) the_user = get_user_name ( ) filename = get_spotlight_plist_filename ( ) str_out = key_value_hash_to_str ( items_hash ) the_command = "defaults write #{filename} #{$spotlight_key}" " -array #{str_out}" do_log ( "write_spotlight_items: command is: #{the_command}\n" ) execute "Writing ordered list" do user the_user command the_command end end
Write the items_hash to the spotlight plist files key.
Write the items_hash to the spotlight plist files key .
# This will show as running twice if orderedItems did not exist prior to #   run. The first run is to set everything defined in default, and the #   second is to apply the changes from the changelist.
items_hash
<not_specific>