Quick puppet debugging snippet for Atom
Posted on July 6, 2016 (Last modified on July 11, 2024) • 1 min read • 48 wordsNot sure how I could have lived without this Atom snippet expansion until now (had it before in Sublime, never bothered porting, stooooopid as I realize now 😉 ):
'.source.puppet':
'Puppet: fail inline template':
'prefix': 'fit'
'body': """
$fail_me = inline_template('<%= require "yaml"; YAML.dump(@$1) %>')
fail("\\\\n\\\\nVariable \\\\$$1:\\\\n\${fail_me}\\\\n\\\\n")
"""