This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

15
snippets/chef-mode/script Normal file
View 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