Issue #8612 has been updated by Daniel Pittman.

Jeff Blaine wrote:
> The 'creates' param in the code seems wrong, but I'm a newb, so...
> 
> http://docs.puppetlabs.com/references/stable/type.html#exec
> ...
> ***creates***
> 
> A file that this command creates. If this parameter is provided, then the 
> command will only be run if the specified file does not exist:
> [...]

So, what seems wrong about that to you?  The code is correct, so far as I can 
tell, but it clearly didn't seem that way to you.  That means that it is wrong 
- even if just that it needs to be written so that it is much clearer to folks 
reading it for the first time.
----------------------------------------
Bug #8612: exec "creates" param in doc example wrong
https://projects.puppetlabs.com/issues/8612

Author: Jeff Blaine
Status: Unreviewed
Priority: Normal
Assignee: 
Category: documentation
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


The 'creates' param in the code seems wrong, but I'm a newb, so...

http://docs.puppetlabs.com/references/stable/type.html#exec

...

***creates***

A file that this command creates. If this parameter is provided, then the 
command will only be run if the specified file does not exist:
<pre>
    exec { "tar xf /my/tar/file.tar":
      cwd => "/var/tmp",
      creates => "/var/tmp/myfile",
      path => ["/usr/bin", "/usr/sbin"]
    }
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to