providers/atypical_plist.rb
# Write out the version to the Spotlight plist file
# Params:
#    version_num (string)
Write out the version to the Spotlight plist file
Params:
version_num (string)
Write out the version to the Spotlight plist file Params : version_num ( string )
def write_spotlight_version(version_num)
    filename = get_spotlight_plist_filename()
    the_user = get_user_name()
    if (filename.nil? || the_user.nil?)
        raise "write_spotlight_version: filename or user is nil"
    end
    the_command = "defaults write #{filename} version -int #{version_num}"
    do_log("write_spotlight_version: command is: #{the_command}\n")
    execute "Writing spotlight version" do
        user the_user
        command the_command
    end
end
def write_spotlight_version ( version_num ) filename = get_spotlight_plist_filename ( ) the_user = get_user_name ( ) if ( filename . nil? || the_user . nil? ) raise "write_spotlight_version: filename or user is nil" end the_command = "defaults write #{filename} version -int #{version_num}" do_log ( "write_spotlight_version: command is: #{the_command}\n" ) execute "Writing spotlight version" do user the_user command the_command end end
Write out the version to the Spotlight plist file
Params:
version_num (string)
Write out the version to the Spotlight plist file Params : version_num ( string )
version_num
<not_specific>