Class: Resource

Resource()

Resource class

Constructor

new Resource()

Source:

Methods

algorithm(algorithm) → {Resource}

Sets the checksum algorithm
Parameters:
Name Type Description
algorithm string The algorithm to verify the checksum (e.g. "SHA")
Source:
Returns:
The Resource object
Type
Resource

checksum(checksum) → {Resource}

Sets the checksum which shall be used to verify the resource
Parameters:
Name Type Description
checksum string The checksum
Source:
Returns:
The Resource object
Type
Resource

directory(directory) → {Resource}

Sets the directory inside the resources directory where the Resource is stored
Parameters:
Name Type Description
directory string The directory path
Source:
Returns:
The Resource object
Type
Resource

get() → {string}

Fetches the Resource and returns the path leading to the downloaded resource
Source:
Returns:
The path leading to the downloaded resource
Type
string

name(name) → {Resource}

Sets the resource name
Parameters:
Name Type Description
name string The name of the resource
Source:
Returns:
The Resource object
Type
Resource

url(url) → {Resource}

Sets the resource URL
Parameters:
Name Type Description
url string The URL
Source:
Returns:
The Resource object
Type
Resource

wizard(wizard) → {Resource}

Sets the setup wizard
Parameters:
Name Type Description
wizard SetupWizard The setup wizard
Source:
Returns:
The Resource object
Type
Resource