apm_invoke_install_proc (public)

 apm_invoke_install_proc [ -install_from_repository ] [ -type type ] \
    -node node

Defined in packages/acs-tcl/tcl/apm-install-procs.tcl

read an XML install element and invoke the appropriate processing procedure.

Switches:
-install_from_repository (optional, boolean)
-type (optional, defaults to "action")
the type of element to search for
-node (required)
the XML node to process
Returns:
the result of the invoked proc
Author:
Lee Denison
Created:
2004-06-16

Partial Call Graph (max 5 caller/called nodes):
%3 apm::process_install_xml apm::process_install_xml (public) apm_invoke_install_proc apm_invoke_install_proc apm::process_install_xml->apm_invoke_install_proc install::xml::action::location install::xml::action::location (public) install::xml::action::location->apm_invoke_install_proc install::xml::action::map-category-tree install::xml::action::map-category-tree (public) install::xml::action::map-category-tree->apm_invoke_install_proc install::xml::action::set-join-policy install::xml::action::set-join-policy (public) install::xml::action::set-join-policy->apm_invoke_install_proc install::xml::action::set-permission install::xml::action::set-permission (public) install::xml::action::set-permission->apm_invoke_install_proc xml_node_get_name xml_node_get_name (public) apm_invoke_install_proc->xml_node_get_name

Testcases:
No testcase defined.
Source code:
    set name [xml_node_get_name $node]
    set command [namespace which ::install::xml::${type}::${name}]

    if {$command eq ""} {
        error "Error: got bad node \"$name\""
    }

    #ns_log notice "apm_invoke_install_proc: call [list ::install::xml::${type}::${name} $node]"
    if {$install_from_repository_p && $name eq "install"} {
        ns_log notice "apm_invoke_install_proc: skip [list ::install::xml::${type}::${name} $node] (install from repo)"
        set result 1
    } else {
        set result [::install::xml::${type}::${name} $node]
    }
    return "install::xml::${type}::${name} $result\n"
Generic XQL file:
packages/acs-tcl/tcl/apm-install-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/apm-install-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/apm-install-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: