Skip to content

Instantly share code, notes, and snippets.

@adrianotto
Last active December 15, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adrianotto/5315601 to your computer and use it in GitHub Desktop.
Save adrianotto/5315601 to your computer and use it in GitHub Desktop.
PDP Draft DSL
[
{
"type" : "DeploymentPlan"
"href" : "data://...",
},
{
"type" : "Requirement",
"id" : "file1",
"href" : "data://...",
},
{
"type" : "Requirement",
"id" : "file2",
"href" : "data://...",
},
{
"type" : "applicationComponent"
"id" : "file1",
"href" : "file.tar",
}
{
"type" : "applicationComponent"
"id" : "file2",
"href" : "file2.tar",
"dependsOn" : "file1"
}
]
{
"type" : "AssemblyTemplate"
{
"type" : "Component",
"href" : "file://my-php-applicaiton-source-code.tar",
{
"type" : "Requirement:php",
"id" : "...",
"name" : "php",
"adrian_otto:phpVersion" : [">=5.3.3","<5.4"],
"adrian_otto:phpSafeMode" : "true",
},
{
"type" : "Requirement:mysql",
"id" : "...",
"name" : "mysql",
"adrian_otto:mysqlVersion" : "5.1|5.6",
"dependsOn" : "initializationSql"
}
},
{
"type" : "Component",
"href" : "data://text/plain;base64,<data>",
"name" : "initializationSql"
}
}
{
"type" : "AssemblyTemplate"
{
"type" : "Component",
"href" : "file://my-php-applicaiton-source-code.tar",
{
"type" : "Requirement",
"name" : "mysql",
"protocol" : "mysql5.1",
},
},
{
"type" : "Component",
"name" : "mysql",
"interface" : "mysql5.1",
"requires" : "compute"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment