Methods
(inner) getVersion(resource, cb)
Get version value from the Makefile resource's variable.
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
resource |
Object
|
resource configuration
|
|||||||||
cb |
function
|
standard cb(err, result) callback, result is the version value |
(inner) isReadyForRelease(resource, cb)
Check that the Makefile resource is ready for release, i.e. the variable
exists with a value. The Makefile parser doesn't reject invalid content, it skips the
lines it can't handle.
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
resource |
Object
|
resource configuration
|
|||||||||
cb |
function
|
standard cb(err, result) callback, result is true when the resource is ready for release, an error is passed when the variable is not configured, doesn't exist, or has no value |
(inner) setVersion(version, resource, opts, cb)
Set version value in the Makefile resource's variable.
- 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 |