my-emacs-d/elpa/yasnippet-20161022.646/snippets/chef-mode/script
2016-10-24 08:30:06 +02:00

16 lines
244 B
Plaintext

# -*- mode: snippet -*-
# name: script
# key: script
# --
script "${1:do something}" do
interpreter "bash"
user "${2:root}"
cwd "${3:/tmp}"
creates "${4:maybe}"
code <<-EOH
STATUS=0
$0 || STATUS=1
exit $STATUS
EOH
end