Methods
(inner) getVersion(resource, cb)
Get version value from the YAML resource's property (defined in
dot-notation).
- Source:
Parameters:
| Name |
Type |
Description |
resource |
Object
|
resource configuration
| Name |
Type |
Description |
path |
String
|
path to the YAML file
|
params.property |
String
|
property in dot-notation
|
|
cb |
function
|
standard cb(err, result) callback, result is the
version value
|
(inner) isReadyForRelease(resource, cb)
Check that the YAML resource is ready for release, i.e. the file can be
parsed and the property exists with a value.
- Source:
Parameters:
| Name |
Type |
Description |
resource |
Object
|
resource configuration
| Name |
Type |
Description |
path |
String
|
path to the YAML file
|
params.property |
String
|
property in dot-notation
|
|
cb |
function
|
standard cb(err, result) callback, result is true
when the resource is ready for release, an error is passed when the file
is not configured, the file can't be parsed, or the property doesn't exist or has no value
|
(inner) setVersion(version, resource, opts, cb)
Set version value in the YAML resource's property (defined in dot-notation).
- Source:
Parameters:
| Name |
Type |
Description |
version |
String
|
version value to set
|
resource |
Object
|
resource configuration
| Name |
Type |
Description |
path |
String
|
path to the YAML file
|
params.property |
String
|
property in dot-notation
|
|
opts |
Object
|
optional settings
| Name |
Type |
Attributes |
Description |
dryRun |
Boolean
|
<optional>
|
when true, YAML file won't be modified
|
|
cb |
function
|
standard cb(err, result) callback
|