summaryrefslogtreecommitdiff
path: root/fact.rb
AgeCommit message (Collapse)Author
2011-04-30Small re-factor. Remove not needed complexity.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29Small re-factor. Changed if not to unless for code clarity.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29Added check to ensure that given fact name is a string.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26Removing string interpolation from fact.rb. I am not sure whetherKrzysztof Wilczynski
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-26Small re-factor to fact function.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Small re-factor of fact function.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Updated help message.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Updated error check and reporting. Also we now return emptyKrzysztof Wilczynski
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-23Small changes. Mainly to formatting of the help provided.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23First version. A function for Puppet that allows to retrieve a fact from FacterKrzysztof Wilczynski
easily instead of resorting to awful "inline_template" use-and-abuse practices. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>