Methods
algorithm(algorithm) → {Resource}
Sets the checksum algorithm
Parameters:
Name | Type | Description |
---|---|---|
algorithm |
string | The algorithm to verify the checksum (e.g. "SHA") |
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 |
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 |
Returns:
The Resource object
- Type
- Resource
get() → {string}
Fetches the Resource and returns the path leading to the downloaded resource
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 |
Returns:
The Resource object
- Type
- Resource
url(url) → {Resource}
Sets the resource URL
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL |
Returns:
The Resource object
- Type
- Resource
wizard(wizard) → {Resource}
Sets the setup wizard
Parameters:
Name | Type | Description |
---|---|---|
wizard |
SetupWizard | The setup wizard |
Returns:
The Resource object
- Type
- Resource