Krzysztof Wilczynski
8454622e32
Added check to ensure that given fact name is a string.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 20:58:28 +01:00
Krzysztof Wilczynski
b24c839f89
Minor changes.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 20:47:39 +01:00
Krzysztof Wilczynski
f3b6b11e85
First version. Simple str2bool function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 20:13:27 +01:00
Krzysztof Wilczynski
4c097b0a09
Reverting name back to bool2num.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 20:10:53 +01:00
Krzysztof Wilczynski
07847be9b9
Added proper handling of both FalseClass and TrueClass. We also
...
return real integer values now over string-encoded integers.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 20:07:56 +01:00
Krzysztof Wilczynski
5e9721983a
Added FalseClass and TrueClass to be identified as Boolean to the type function.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 20:05:44 +01:00
Krzysztof Wilczynski
085874afc3
Adding TODO for future reference.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:42:54 +01:00
Krzysztof Wilczynski
e0559c174e
Adding support for strings to the the function unique.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:40:07 +01:00
Krzysztof Wilczynski
aa2237bcb6
Make sure that we have string-encoded integer value.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:28:38 +01:00
Krzysztof Wilczynski
af1ba5ce8a
Adding support for strings and hashes to the function empty.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:27:52 +01:00
Krzysztof Wilczynski
456a351ac2
First version. Simple chomp function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:10:04 +01:00
Krzysztof Wilczynski
020a2a23ee
First version. Simple chop function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:09:57 +01:00
Krzysztof Wilczynski
a038f6a041
First version. Simple lstrip function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:09:39 +01:00
Krzysztof Wilczynski
a29674f08f
First version. Simple rstrip function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:09:29 +01:00
Krzysztof Wilczynski
c025cce133
First version. Simple strip function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 18:08:45 +01:00
Krzysztof Wilczynski
14b4ca8de2
Added support for strings to reverse.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 17:30:04 +01:00
Krzysztof Wilczynski
b3dd2207c3
Small re-factor of shuffle function. It is more compact now.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 17:29:14 +01:00
Krzysztof Wilczynski
b30ed04390
First version. Simple capitalize function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 17:27:50 +01:00
Krzysztof Wilczynski
f35fb81998
First version. Simple type function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 15:19:31 +01:00
Krzysztof Wilczynski
e9d0b65807
Adding support for string alongside arrays.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 05:00:51 +01:00
Krzysztof Wilczynski
1296b3fc28
First version. Simple is_hash function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 04:37:50 +01:00
Krzysztof Wilczynski
65f98d2f09
Adding relevant code.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 04:36:28 +01:00
Krzysztof Wilczynski
eab2a63f1b
Added TODO for future reference.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 04:22:04 +01:00
Krzysztof Wilczynski
606820a4c9
Added TODO for future reference.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 04:21:20 +01:00
Krzysztof Wilczynski
c3877c1984
Added TODO for future reference.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 04:20:44 +01:00
Krzysztof Wilczynski
b387d5ef60
Changed wording from numeric to integer.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 04:19:30 +01:00
Krzysztof Wilczynski
517227c75f
Added TODO for future reference.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 04:18:29 +01:00
Krzysztof Wilczynski
1c07b8dba9
First version. Simple abs function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-29 03:09:52 +01:00
Krzysztof Wilczynski
177f0c730b
Removing old unused file.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28 03:45:05 +01:00
Krzysztof Wilczynski
d25cd57dbe
First version. Simple strftime function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28 03:44:28 +01:00
Krzysztof Wilczynski
31041c0e37
First version. Simple time function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28 03:44:11 +01:00
Krzysztof Wilczynski
fc886ed7b7
First version. Simple is_string function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28 03:43:34 +01:00
Krzysztof Wilczynski
d495723d6f
First version. Simple is_array function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28 03:43:14 +01:00
Krzysztof Wilczynski
0bd7550336
Minor changes.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-28 03:42:37 +01:00
Krzysztof Wilczynski
79191fc127
Changing name of the function from include to includes as it clashes with
...
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-27 23:26:41 +01:00
Krzysztof Wilczynski
cd4904b9d9
First version. Simple range function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 23:45:50 +01:00
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
c229a323a1
Changed comment line wording.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 04:21:00 +01:00
Krzysztof Wilczynski
6776d09c0a
Removing surplus files.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 03:55:04 +01:00
Krzysztof Wilczynski
67ea75883f
Changing name of collect_indices.rb to values_at.rb in order to be
...
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-26 03:18:50 +01:00
Krzysztof Wilczynski
5225570018
First version. Simple delete_at function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 02:54:18 +01:00
Krzysztof Wilczynski
6bf04e1353
Small re-factor. We prefer our local clone of the array ...
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 02:53:40 +01:00
Krzysztof Wilczynski
528a16e377
First version. Simple size function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 01:29:53 +01:00
Krzysztof Wilczynski
c9dcca03b5
First version. Simple unique function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 00:14:48 +01:00
Krzysztof Wilczynski
45b5b472a1
First version. Simple shuffle function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 00:14:38 +01:00
Krzysztof Wilczynski
4d6b350509
First version. Simple reverse function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 00:14:24 +01:00
Krzysztof Wilczynski
19f6ca9d75
First version. Simple include function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 00:14:12 +01:00
Krzysztof Wilczynski
a718b9b4a4
First version. Simple count function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 00:13:31 +01:00
Krzysztof Wilczynski
de0e7adb66
First version. Simple empty function to use within Puppet DSL.
...
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-26 00:09:26 +01:00
Krzysztof Wilczynski
738db6eb70
Re-factor of the original function. Now its behaviour is either to join
...
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-26 00:05:20 +01:00