Methods
(inner) getVersion(resource, cb)
Get version value from the text resource, using the first match of the
regex.
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
resource |
Object
|
resource configuration
|
|||||||||
cb |
function
|
standard cb(err, result) callback, result is the version value |
(inner) setVersion(version, resource, opts, cb)
Set version value in the text resource, replacing all matches of the regex.
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
version |
String
|
version value to set | |||||||||
resource |
Object
|
resource configuration
|
|||||||||
opts |
Object
|
optional settings
|
|||||||||
cb |
function
|
standard cb(err, result) callback |