This shows you the differences between two versions of the page.
esmith:build:createlinks [2015/05/22 06:12] stephdl [AUTHOR] |
esmith:build:createlinks [2019/06/05 19:48] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== esmith:: | ||
- | esmith:: | ||
- | for the latest version, do | ||
- | yum install nethserver-devtools | ||
- | perldoc esmith:: | ||
- | ==== NAME ==== | ||
- | |||
- | | ||
- | |||
- | ==== SYNOPSIS ==== | ||
- | |||
- | use esmith:: | ||
- | |||
- | | ||
- | |||
- | ==== DESCRIPTION ==== | ||
- | |||
- | === safe_symlink === | ||
- | |||
- | This function works like symlink(), but if the directory being linked to does not exist, it will create it. | ||
- | |||
- | ie. safe_symlink(" | ||
- | |||
- | === panel_link === | ||
- | |||
- | This function creates a link to a web panel. | ||
- | |||
- | ie. | ||
- | my $panel = " | ||
- | | ||
- | |||
- | === admin_common_link === | ||
- | |||
- | This function creates a symlink from the common manager directory to a file in the functions directory. | ||
- | |||
- | === event_link === | ||
- | |||
- | This function creates a symlink from an action’s ordered location in an event directory to its action script. | ||
- | |||
- | ie. | ||
- | my $event = " | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | === validator_link === | ||
- | |||
- | This function creates a symlink from an action’s ordered location in a validator directory to its action script. | ||
- | |||
- | ie. | ||
- | my $validator = " | ||
- | | ||
- | | ||
- | |||
- | === validator_actions($validatorName, | ||
- | |||
- | Create links to actions for the given validator. @actions_specs is a list of pairs Action => Priority. E.g | ||
- | |||
- | | ||
- | |||
- | See also validator_link(). | ||
- | === service_link_enhanced === | ||
- | |||
- | This function creates a symlink from a SysV init start or kill link in a runlevel to e-smith-service, | ||
- | |||
- | ie. | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | === safe_touch === | ||
- | |||
- | This function creates an empty file, but first creates any enclosing directories. | ||
- | |||
- | | ||
- | |||
- | will create any of the directories " | ||
- | |||
- | === templates2events === | ||
- | |||
- | This function creates a file tree (of empty files) which is used by the generic_template_expand action to determine which templates need to be expanded for a particular event. Takes one file | ||
- | argument and a list of event names, e.g. | ||
- | |||
- | templates2events("/ | ||
- | |||
- | === event_templates($event, | ||
- | |||
- | This function is similar to templates2events(): | ||
- | |||
- | event_templates(" | ||
- | |||
- | === event_actions($event, | ||
- | |||
- | Create links to actions for the given event. @actions_specs is a list of pairs Action => Priority. E.g | ||
- | |||
- | | ||
- | |||
- | See also event_link(). | ||
- | |||
- | === event_services($event, | ||
- | |||
- | Create links for the given $event in services2adjust/ | ||
- | |||
- | | ||
- | |||
- | See also safe_symlink(). | ||
- | |||
- | ==== AUTHOR ==== | ||
- | |||
- | SME Server Developers < | ||
- | Nethesis srl www.nethesis.it < | ||
- | |||
- | perl v5.10.1 | ||
- | |||
- | |||
- | {{tag> development}} |