Install yasnippet and vala-snippets packages
This commit is contained in:
15
elpa/yasnippet-20160924.2001/snippets/chef-mode/script
Normal file
15
elpa/yasnippet-20160924.2001/snippets/chef-mode/script
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- 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
|
Reference in New Issue
Block a user