Fly, Penguin!

I blog so I don't forget.

Quick puppet debugging snipper for Atom

0 minute read #puppet

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