Module Expr Str ImportFrom alias Import alias Import alias Import alias TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If BoolOpAnd NameLoad Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr CompareIsNot NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str If NameLoad body AugAssignAdd NameStore Str Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad Return Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot CompareEq SubscriptLoad NameLoad Slice Num Str body If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot CompareEq SubscriptLoad NameLoad Index Num Str body AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Return Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str keyword Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Return TupleLoad Call SubscriptLoad NameLoad Index Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Return Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Return Call AttributeLoad Call SubscriptLoad NameLoad Index Str NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call SubscriptLoad NameLoad Index Str keyword Str TryFinally body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword Str For NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad finalbody Expr Call SubscriptLoad NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareNotIn Str NameLoad body Return Call AttributeLoad NameLoad attr Str Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareNotIn Str NameLoad body Return ListLoad NameLoad Return ListLoad decorator_list
N/A N/A 
Install pkg, dmg and .app applications on Mac OS X minions.

 __future__ absolute_import N/A os N/A logging N/A shlex N/A N/A N/A pipes N/A HAS_DEPS True N/A N/A N/A ImportError N/A N/A HAS_DEPS False N/A salt.utils N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ macpackage N/A N/A hasattr shlex quote N/A N/A _quote N/A shlex quote N/A N/A N/A HAS_DEPS N/A hasattr pipes quote N/A N/A _quote N/A pipes quote N/A N/A _quote None __virtual__ N/A N/A N/A N/A N/A 
    Only work on Mac OS
     N/A N/A N/A N/A N/A salt utils is_darwin N/A _quote None N/A N/A __virtualname__ N/A False N/A install N/A N/A pkg target store allow_untrusted N/A LocalSystem False False N/A N/A 
    Install a pkg file

    CLI Example:

    .. code-block:: bash

        salt '*' macpackage.install test.pkg

    target
        The target in which to install the package to

    store
        Should the package be installed as if it was from the store?

    allow_untrusted
        Allow the installation of untrusted packages?


     N/A pkg N/A _quote pkg N/A target N/A _quote target N/A cmd N/A N/A installer -pkg {0} -target {1} format pkg target N/A store N/A N/A cmd  -store N/A allow_untrusted N/A N/A cmd  -allowUntrusted N/A python_shell False N/A N/A *. cmd N/A N/A python_shell True N/A N/A N/A __salt__ N/A cmd.run_all cmd python_shell python_shell N/A install_app N/A N/A app target N/A /Applications/ N/A N/A 
    Install an app file

    CLI Example:

    .. code-block:: bash

        salt '*' macpackage.install_app /tmp/tmp.app /Applications/

    app
        The location of the .app file

    target
        The target in which to install the package to


     N/A app N/A _quote app N/A target N/A _quote target N/A N/A N/A N/A target N/A -4 .app N/A N/A N/A N/A app N/A -1 / N/A N/A base_app N/A N/A N/A os path basename N/A app N/A -1 N/A N/A base_app N/A N/A N/A os path basename app N/A target N/A N/A N/A os path join target base_app N/A N/A N/A N/A app N/A -1 / N/A N/A app / N/A cmd N/A N/A rsync -a --no-compress --delete {0} {1} format app target N/A N/A N/A __salt__ N/A cmd.run cmd N/A uninstall_app N/A N/A app N/A N/A N/A 
    Uninstall an app file

    CLI Example:

    .. code-block:: bash

        salt '*' macpackage.uninstall_app /Applications/app.app

    app
        The location of the .app file


     N/A N/A N/A __salt__ N/A file.remove app N/A mount N/A N/A dmg N/A N/A N/A 
    Attempt to mount a dmg file to a temporary location and return the
    location of the pkg file inside

    dmg
        The location of the dmg file to mount
     N/A temp_dir N/A N/A __salt__ N/A temp.dir prefix dmg- N/A cmd N/A N/A hdiutil attach -readonly -nobrowse -mountpoint {0} "{1}" format temp_dir dmg N/A N/A N/A N/A __salt__ N/A cmd.run cmd temp_dir N/A unmount N/A N/A mountpoint N/A N/A N/A 
    Attempt to unmount a dmg file from a temporary location

    mountpoint
        The location of the mount point
     N/A cmd N/A N/A hdiutil detach "{0}" format mountpoint N/A N/A N/A __salt__ N/A cmd.run cmd N/A installed_pkgs N/A N/A N/A N/A N/A 
    Return the list of installed packages on the machine

     N/A cmd pkgutil --pkgs N/A N/A N/A N/A N/A __salt__ N/A cmd.run cmd split N/A get_pkg_id N/A N/A pkg N/A N/A N/A 
    Attempt to get the package id from a .pkg file

    Returns all of the package ids if the pkg file contains multiple

    pkg
        The location of the pkg file
     N/A pkg N/A _quote pkg N/A package_ids N/A N/A temp_dir N/A N/A __salt__ N/A temp.dir prefix pkg- N/A N/A N/A cmd N/A N/A xar -t -f {0} | grep PackageInfo format pkg N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell True output_loglevel quiet N/A files N/A N/A out split N/A N/A Error opening out N/A N/A cmd N/A N/A xar -x -f {0} {1} format pkg N/A N/A join files N/A N/A N/A __salt__ N/A cmd.run cmd cwd temp_dir output_loglevel quiet N/A f files N/A N/A i N/A _get_pkg_id_from_pkginfo N/A N/A N/A os path join temp_dir f N/A N/A len i N/A N/A N/A N/A package_ids extend i N/A N/A package_ids N/A _get_pkg_id_dir pkg N/A N/A N/A N/A __salt__ N/A file.remove temp_dir N/A package_ids N/A get_mpkg_ids N/A N/A mpkg N/A N/A N/A 
    Attempt to get the package ids from a mounted .mpkg file

    Returns all of the package ids if the pkg file contains multiple

    pkg
        The location of the mounted mpkg file
     N/A mpkg N/A _quote mpkg N/A package_infos N/A N/A base_path N/A N/A N/A os path dirname mpkg N/A cmd N/A N/A find {0} -name *.pkg format base_path N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell True N/A pkg_files N/A N/A out split N/A p pkg_files N/A N/A N/A N/A package_infos extend N/A get_pkg_id p N/A package_infos N/A _get_pkg_id_from_pkginfo N/A N/A pkginfo N/A N/A N/A pkginfo N/A _quote pkginfo N/A cmd N/A N/A cat {0} | grep -Eo 'identifier="[a-zA-Z.0-9\-]*"' | cut -c 13- | tr -d '"' format pkginfo N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell True N/A N/A No such file out N/A N/A N/A N/A out split N/A N/A N/A _get_pkg_id_dir N/A N/A path N/A N/A N/A path N/A _quote N/A N/A N/A os path join path Contents/Info.plist N/A cmd N/A N/A /usr/libexec/PlistBuddy -c "print :CFBundleIdentifier" {0} format path N/A python_shell False N/A N/A *. cmd N/A N/A python_shell True N/A out N/A N/A __salt__ N/A cmd.run cmd python_shell python_shell N/A N/A Does Not Exist out N/A N/A N/A out N/A N/A N/A