diff options
author | Luke Kanies <luke@madstop.com> | 2005-08-25 20:54:16 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-08-25 20:54:16 +0000 |
commit | 48a2e0f05735263a8cc4d16188a904c24385b9b1 (patch) | |
tree | cd14bc9c524f5e3465521fcd81b58bc0c574f2df /examples/code/snippets/implicititeration | |
parent | 66b3355cc3e025f2659d038d4055b5df0dcbe253 (diff) | |
download | puppet-48a2e0f05735263a8cc4d16188a904c24385b9b1.tar.gz puppet-48a2e0f05735263a8cc4d16188a904c24385b9b1.tar.xz puppet-48a2e0f05735263a8cc4d16188a904c24385b9b1.zip |
making array-as-name work in the language, and adding some more test snippets
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@589 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'examples/code/snippets/implicititeration')
-rw-r--r-- | examples/code/snippets/implicititeration | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/code/snippets/implicititeration b/examples/code/snippets/implicititeration new file mode 100644 index 000000000..c4a850a94 --- /dev/null +++ b/examples/code/snippets/implicititeration @@ -0,0 +1,15 @@ +# $Id$ + +$files = ["/tmp/iterationatest", "/tmp/iterationbtest"] + +file { $files: create => true, mode => 755 } + +file { ["/tmp/iterationctest", "/tmp/iterationdtest"]: + create => true, + mode => 755 +} + +file { + ["/tmp/iterationetest", "/tmp/iterationftest"]: create => true, mode => 755; + ["/tmp/iterationgtest", "/tmp/iterationhtest"]: create => true, mode => 755; +} |