Quick puppet debugging snipper for Atom

Not sure how I could have lived without this until now (had it before in Sublime, never bothered porting, stooooopid as I realize now 😉 ):

  '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")

Leave a Reply

Your email address will not be published. Required fields are marked *