Commit graph

7 commits

Author SHA1 Message Date
Krzysztof Wilczynski
0e3c0385ef Removing string interpolation from fact.rb. I am not sure whether
we should fiddle with this.  The old behaviour e.g. evaluate when
inside "" and don't do anything when inside '' is probably better
choice in the end as people are used to it working that way.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 04:21:32 +01:00
Krzysztof Wilczynski
f87fcecdfb Small re-factor to fact function.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 00:00:58 +01:00
Krzysztof Wilczynski
50cb2cd05a Small re-factor of fact function.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25 23:32:41 +01:00
Krzysztof Wilczynski
bb231bdfc2 Updated help message.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25 02:46:12 +01:00
Krzysztof Wilczynski
61936fdeaa Updated error check and reporting. Also we now return empty
string value i.e. "" instead of raising an exception when a
particular fact is not present.  We also make use of strinterp()
explicitly to evaluate arguments passed to the function.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25 02:02:00 +01:00
Krzysztof Wilczynski
0b1aab2ed5 Small changes. Mainly to formatting of the help provided.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23 01:56:30 +01:00
Krzysztof Wilczynski
399dd8cca8 First version. A function for Puppet that allows to retrieve a fact from Facter
easily instead of resorting to awful "inline_template" use-and-abuse practices.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23 01:28:11 +01:00