pallet.script.lib documentation

Script library for abstracting target host script differences

has-command?

[arg]

Check whether the specified command is on the path

install-package

[name & options]

Install the specified package.

list-installed-packages

[& options]

List the installed packages

make-temp-dir

[pattern & {:as options}]

Create a temporary directory

mkdir

[directory & {:keys [path verbose mode]}]

Create the specified directory

normalise-md5

[file]

Normalise an md5 sum file to contain the base filename

purge-package

[name & options]

Uninstall the specified package, removing the configuration files if possible.

remove-package

[name & options]

Uninstall the specified package, leaving the configuration files if possible.

rmdir

[directory & {:as options}]

Remove the specified directory

selinux-bool

[flag value & {:keys [persist]}]

Set the selinux boolean value

selinux-file-type

[path type]

Set the selinux file type

update-package-list

[& options]

Update the list of packages available to the package manager from the declared package sources.

upgrade-all-packages

[& options]

Upgrade the all installed package.

upgrade-package

[name & options]

Upgrade the specified package.