I've looked through a few "ensure" providing .rb files, and would like to
verify something.
None of the ones I've looked at, seem to explicitly return any kind of
value for "Hey, I updated something".
Nor do even may other kinds of utils that I look at. For example:
def mode=(value)
begin
File.chmod(value.to_i(8), resource[:path])
.. (and nothing else normal here)
end
In OTHER code, however I see syntax such as
return "Some user visible string here"
So, given the lack of documentation, I just wanted confirm that the "Right
way" to log a change, is that style.
eg:
def exists?
if ! is_it_there?
return "Hey I made it for you"
end
end
I dont see how to send some kind of message to the logs, "hey, something
changed, but I'm fixing it".
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-dev/-/h-b5UUre84IJ.
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-dev?hl=en.