diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-08-28 06:12:39 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-08-28 06:12:39 +0000 |
| commit | 8dbca3d5ff65dea26265981ad8489cd0e0212ad6 (patch) | |
| tree | 7b75b9d75198a76f1e57700a6f69b82cf04485c2 /documentation | |
| parent | 333c22920cf4399c77a122ece87e13454e71b509 (diff) | |
| download | puppet-8dbca3d5ff65dea26265981ad8489cd0e0212ad6.tar.gz puppet-8dbca3d5ff65dea26265981ad8489cd0e0212ad6.tar.xz puppet-8dbca3d5ff65dea26265981ad8489cd0e0212ad6.zip | |
adding notice that "$" is now required in definition prototypes
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1498 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/documentation/structures.page | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/documentation/documentation/structures.page b/documentation/documentation/structures.page index 40b665934..2d82816e3 100644 --- a/documentation/documentation/structures.page +++ b/documentation/documentation/structures.page @@ -116,7 +116,7 @@ level types. Parameters of defined functions can be referenced within the definition scope, similarly to variables, by preceding their names with the ``$`` character: - define svnserve(source, path, user = false, password = false) { + define svnserve($source, $path, $user = false, $password = false) { file { $path: create => directory, owner => root, @@ -147,6 +147,8 @@ similarly to variables, by preceding their names with the ``$`` character: password => "password" } +As of 0.19.0, arguments in definition prototypes must have '$' attached to them. + Note that calling components results in a unique instance of all contained objects. In the above case, each of the calls to ``svnserver`` results in an ``exec`` and a ``file`` instance. So, it's important that all of your |
