boomerang::resource_info (public)

 boomerang::resource_info [ -version version ]

Defined in packages/boomerang/tcl/boomerang-procs.tcl

Get information about available version(s) of the boomerang packages, either from the local filesystem, or from CDN.

Switches:
-version (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 boomerang::initialize_widget boomerang::initialize_widget (public) boomerang::resource_info boomerang::resource_info boomerang::initialize_widget->boomerang::resource_info packages/boomerang/www/sitewide-admin/compress.tcl packages/boomerang/ www/sitewide-admin/compress.tcl packages/boomerang/www/sitewide-admin/compress.tcl->boomerang::resource_info packages/boomerang/www/sitewide-admin/index.tcl packages/boomerang/ www/sitewide-admin/index.tcl packages/boomerang/www/sitewide-admin/index.tcl->boomerang::resource_info acs_package_root_dir acs_package_root_dir (public) boomerang::resource_info->acs_package_root_dir parameter::get_global_value parameter::get_global_value (public) boomerang::resource_info->parameter::get_global_value

Testcases:
No testcase defined.
Source code:
        variable parameter_info
        #
        # If no version of the boomerang library was specified,
        # use the name-spaced variable as default.
        #
        if {$version eq ""} {
            dict with parameter_info {
                set version [::parameter::get_global_value  -package_key $package_key  -parameter $parameter_name  -default $default_value]
            }
        }

        #
        # Provide paths for loading either via resources or CDN
        #
        set resourceDir [acs_package_root_dir boomerang/www/resources]
        set cdnHost     cdnjs.cloudflare.com
        set cdn         //$cdnHost/ajax/libs

        if {[file exists $resourceDir/boomerang-$version.js]} {
            #
            # Local version is installed
            #
            set prefix  /resources/boomerang
            set cdnHost ""
            set cspMap  ""
        } else {
            #
            # So far, there is no CDN form boomerang, we distribute
            # boomerang.js via static file.
            #
            set prefix $cdn/$version/
            lappend result host "cdnjs.cloudflare.com"
        }

        lappend result  resourceName "Boomerang"  resourceDir $resourceDir  versionSegment ""  cdn $cdn  cdnHost $cdnHost  prefix $prefix  cssFiles {}  jsFiles  [list boomerang-${version}.js]  extraFiles {}  downloadURLs https://github.com/akamai/boomerang/archive/refs/tags/1.737.0.tar.gz  cspMap {}  urnMap {}  parameterInfo $parameter_info  configuredVersion $version

        return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: