yaml

Contains yaml functions.

Todo:: Better logging here?
Since: 3.0.0
Example

// Add a string to the cache
var thing = lando.yaml.load('/tmp/myfile.yml');

yaml.load(file) ⇒ Object

Loads a yaml object from a file

Kind: static method of yaml
Returns: Object - The loaded object
Since: 3.0.0

Param Type Description
file String The path to the file to be loaded

Example

// Add a string to the cache
var thing = lando.yaml.load('/tmp/myfile.yml');

yaml.dump(file, data)

Dumps an object to a YAML file

Kind: static method of yaml
Since: 3.0.0

Param Type Description
file String The path to the file to be loaded
data Object The object to dump

results matching ""

    No results matching ""