summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-28First version. Simple time function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28First version. Simple is_string function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28First version. Simple is_array function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28Minor changes.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-27Changing name of the function from include to includes as it clashes withKrzysztof Wilczynski
a core function from Puppet::Parser. I had no idea that you can over-write some of the that way. Oops. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple range function to use within Puppet DSL.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-26Changed comment line wording.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26Removing surplus files.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26Changing name of collect_indices.rb to values_at.rb in order to beKrzysztof Wilczynski
reasemble Ruby's Array#values_at more. Added support for ranges with hyphen, two and three dots notation. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple delete_at function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26Small re-factor. We prefer our local clone of the array ...Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple size function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple unique function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple shuffle function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple reverse function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple include function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple count function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple empty function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26Re-factor of the original function. Now its behaviour is either to joinKrzysztof Wilczynski
with prefix or just add prefix or simply join. This depends on its use. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple prefix function to use within Puppet DSL.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26First version. Simple join function to use within Puppet DSL.Krzysztof Wilczynski
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-25Changing name of join.rb to join_with_prefix.rb to make room forKrzysztof Wilczynski
its simpler version. 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-25First version. Function opposite to the bool2num one. ConvertsKrzysztof Wilczynski
number to appropriate boolean value. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Minor update.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25First version. Improvment upon bool2num function found on the Internet.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-25Added help accessible via the :doc functionality in Puppet's newfunction.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-25Update to error reporting.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-24Adding more error checking ...Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-24Adding ability to specifiy range as the index when selecting indices to collect.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23Small changes. Added better error checking etc ...Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23First version. Function that allows to collect selected indicesKrzysztof Wilczynski
from an array within Puppet manifest. More or less how array slicing works in Perl ... Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23First version. Adding join to Puppet for use within the manifest files.Krzysztof Wilczynski
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-23Fix. It is better to promote good practice...Krzysztof Wilczynski
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-23We do not need cronrand.rb any more.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>
2011-04-23Minor changes. Added placeholder for :doc in Puppet's newfunction to fill later.Krzysztof Wilczynski
2011-03-23Create destination directory on-demand i.e. when missing ...Krzysztof Wilczynski
Signed-off-by: Krzsysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-03-14Changing the name of the file to reflect change in the function name.Krzysztof Wilczynski
2011-03-14Adding README file ...Krzysztof Wilczynski
2011-03-13First version.Krzysztof Wilczynski
2011-03-13Changing the way how function description and usage was given. Now ↵Krzysztof Wilczynski
documentation is exposed properly via Puppet itself.
2011-03-13Changing the name of the file to reflect change in the function name.Krzysztof Wilczynski
2011-03-12Small re-factor.Krzysztof Wilczynski
2011-03-12Check for the number of arguments given.Krzysztof Wilczynski