- Every function must be uniquely-named
- Progress should store a stat of the file, and the line index
Created
September 11, 2017 17:37
-
-
Save thosakwe/c52335a17354e3857129da1668c8da85 to your computer and use it in GitHub Desktop.
Reproducible server configuration DSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@platform('debian') | |
@require('apt-transport-https') | |
proc dartSdk() { | |
sudo "sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'" | |
sudo "sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'" | |
sudo "apt-get update" | |
env_add ('PATH', '/usr/lib/dart/bin') // Either this | |
path_add 'apt-get install dart' // Or this | |
sudo "apt-get install -y dart" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc myServer() { | |
on_startup "path/to/my/script" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc foo(stringArg, boolArg?, numArg#) { | |
bar := 'baz' | |
hello := @exec('echo world') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment