summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorLuke Kanies <luke@reductivelabs.com>2010-01-08 00:49:36 -0800
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit6d2a10b40c9f77ea5101abe6e568ed5a798c04f3 (patch)
treeb8ef1e9860be5c7b558e210fa066d327e5dbab92 /ext
parente515513b5cb065f3e43f5c2880d0452d8e2b25b8 (diff)
downloadpuppet-6d2a10b40c9f77ea5101abe6e568ed5a798c04f3.tar.gz
puppet-6d2a10b40c9f77ea5101abe6e568ed5a798c04f3.tar.xz
puppet-6d2a10b40c9f77ea5101abe6e568ed5a798c04f3.zip
Adding simplistic pure ruby interface
This is a simplistic DSL - you can create resource types (defined resources), classes, and nodes, and they can call functions and create resources. Nothing else, at this point. Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'ext')
-rw-r--r--ext/pure_ruby_dsl/dsl_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/pure_ruby_dsl/dsl_test.rb b/ext/pure_ruby_dsl/dsl_test.rb
new file mode 100644
index 000000000..6eff2982e
--- /dev/null
+++ b/ext/pure_ruby_dsl/dsl_test.rb
@@ -0,0 +1,7 @@
+hostclass "foobar" do
+ notify "this is a test", "loglevel" => "warning"
+end
+
+node "default" do
+ acquire "foobar"
+end