Module m_site_update

Fetch the status of the sites.

Copyright © 2019-2020 Marc Worrell

Behaviours: zotonic_model.

Authors: Marc Worrell (marc@worrell.nl).

Description

Fetch the status of the sites.

Data Types

vcs()

vcs() = {git | hg, file:filename_all()}

Function Index

m_get/3Fetch the value for the key from a model source.
m_post/3
update_vcs/2Run the VCS update command for a directory.
vcs_dir/1
vcs_site/1Check if the site directory has a mercurial .hg subdirectory.
vcs_zotonic/0Check if zotonic itself has a .hg directory.

Function Details

m_get/3

m_get(Rest::list(), Msg::zotonic_model:opt_msg(), Context::z:context()) -> zotonic_model:return()

Fetch the value for the key from a model source

m_post/3

m_post(X1, Msg, Context) -> any()

update_vcs/2

update_vcs(X1, Context) -> any()

Run the VCS update command for a directory.

vcs_dir/1

vcs_dir(Dir::file:filename_all()) -> vcs() | false

vcs_site/1

vcs_site(Site::atom() | binary() | z:context()) -> vcs() | false

Check if the site directory has a mercurial .hg subdirectory

vcs_zotonic/0

vcs_zotonic() -> vcs() | false

Check if zotonic itself has a .hg directory


Generated by EDoc