resource-types/makefile

Methods

(inner) getVersion(resource, cb)

Get version value from the Makefile resource's variable.
Source:
Parameters:
Name Type Description
resource Object resource configuration
Name Type Description
path String path to the Makefile
params.variable String name of the variable which contains the version
cb function standard cb(err, result) callback, result is the version 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
Name Type Description
path String path to the Makefile
params.variable String name of the variable which contains the version
opts Object optional settings
Name Type Attributes Description
dryRun Boolean <optional>
when true, Makefile won't be modified
cb function standard cb(err, result) callback