summaryrefslogtreecommitdiff
path: root/tests/examplefiles/roboconf.graph
diff options
context:
space:
mode:
authorVincentZurczak <devnull@localhost>2015-02-20 14:10:08 +0100
committerVincentZurczak <devnull@localhost>2015-02-20 14:10:08 +0100
commit12a789a4608049824edbc66376c6366ccdc401e5 (patch)
treece05ad993b1f922c6255ce900e25de87d83d8ef1 /tests/examplefiles/roboconf.graph
parent2993eb7a2275211bd4e156a5013be2f3f501a5d3 (diff)
downloadpygments-12a789a4608049824edbc66376c6366ccdc401e5.tar.gz
Support Roboconf's DSL
Diffstat (limited to 'tests/examplefiles/roboconf.graph')
-rw-r--r--tests/examplefiles/roboconf.graph40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/examplefiles/roboconf.graph b/tests/examplefiles/roboconf.graph
new file mode 100644
index 00000000..e5fdedff
--- /dev/null
+++ b/tests/examplefiles/roboconf.graph
@@ -0,0 +1,40 @@
+##################
+# A sample graph
+##################
+
+import some-definition.graph;
+import another-definition.graph;
+
+VM {
+ installer : target;
+ children: deployable;
+}
+
+facet deployable {
+ # nothing
+}
+
+# Sample deployables
+mysql {
+ insTaller: puppet;
+ facets: deployable;
+ exports: ip, port = 3306;
+}
+
+tomcat {
+ installer: bash;
+ facets: deployable;
+ exports: ip;
+ children: web-application;
+}
+
+facet web-application {
+ exports: full-path = undefined;
+}
+
+my-war-1 {
+ facets: web-application;
+ installer: file;
+ exports: full-path = apps/my-war-1; # the relative path
+ imports: mysql.*;
+}