Commit graph

151 commits

Author SHA1 Message Date
Ken Barber
4915eff575 Removed crontab functions instead of unstubbing them. 2011-07-28 21:23:53 +01:00
Ken Barber
a47853502d Removed load_variables. load_yaml is sufficient to solve this problem on its own. 2011-07-28 21:15:43 +01:00
Ken Barber
1a7bd1ae83 Remove is_valid_netmask instead of unstubbing. Doesn't seem like a sensible function on its own. 2011-07-28 21:10:33 +01:00
Ken Barber
313df566bf (#2) unstub is_numeric function. 2011-07-28 21:03:33 +01:00
Ken Barber
635ed82e5c (#2) - unstubbed is_valid_ip_address 2011-07-28 18:10:16 +01:00
Ken Barber
7efd6ec581 (#1) - added new test for upcase. 2011-07-28 15:44:26 +01:00
Ken Barber
a55930368a (#2) - Added is_float and is_integer functionality. 2011-07-28 15:38:19 +01:00
Ken Barber
fde64f37c9 (#1) - fleshed out some more tests. 2011-07-24 00:39:17 +01:00
Ken Barber
07ee334554 Added validate_resource function and examples on how to use it (and kwalify as well) 2011-07-01 21:09:02 +02:00
Ken Barber
1abf4b62fc Few more tests. 2011-06-30 01:00:32 +02:00
Ken Barber
c7c8647634 Move require inside function for kwalify. 2011-06-29 23:39:23 +01:00
Ken Barber
464fb1f41b Add some more functional tests. 2011-06-29 23:37:37 +01:00
Ken Barber
ff56d9917e New abs test. 2011-06-29 21:59:18 +01:00
Ken Barber
790818116e Added tests for each function, fixing functions as we hit bugs. 2011-06-29 21:21:55 +01:00
Ken Barber
e071b05ab6 Added kwalify function. 2011-06-29 12:30:07 +01:00
Ken Barber
157531cd29 Copied function test scaffolding from puppet. 2011-06-29 12:25:43 +01:00
Ken Barber
e6b5a6dd02 Removed duplicate - is_hash is really now is_hash instead of is_array. 2011-06-26 14:33:53 +02:00
Ken Barber
5c42025cab Rename to puppetlabs-functions. 2011-05-16 21:40:01 +01:00
Ken Barber
f71c3bd9e7 Added disclaimer and basic installation guide to README.markdown file. 2011-05-05 11:00:05 +02:00
Ken Barber
aafce9c99b Moved more functions into lib/puppet/parser/functions/ 2011-04-30 16:00:49 +02:00
Ken Barber
09abea2d47 Moved type.rb 2011-04-30 15:59:55 +02:00
Ken Barber
352bac3703 Moved type into pluginsync compat area. 2011-04-30 15:59:55 +02:00
Ken Barber
5c8f8f8edb Added Apache license. 2011-04-30 15:59:31 +02:00
Ken Barber
323cd874c5 Change README. 2011-04-30 15:59:31 +02:00
Ken Barber
99a93d366f Convert to module format. 2011-04-30 15:59:31 +02:00
Krzysztof Wilczynski
781a872057 Add number of stub code for future functions.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 14:36:25 +01:00
Krzysztof Wilczynski
d38e399b47 First version. Simple swapcase function to use within Puppet DSL.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 14:35:10 +01:00
Krzysztof Wilczynski
8733a57ffb Making sure that the function hash will also work on older Rubies.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 03:44:59 +01:00
Krzysztof Wilczynski
b3be789b0d Add number of stub code for future functions.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 03:16:12 +01:00
Krzysztof Wilczynski
72b23cb2e5 First version. Simple hash function to use within Puppet DSL.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 03:15:47 +01:00
Krzysztof Wilczynski
f74ab047cd Change boolean detecion from string to make entire function more robust.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:57:48 +01:00
Krzysztof Wilczynski
4da6d8222e Changed wording of the note in the comment.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:54:47 +01:00
Krzysztof Wilczynski
db7a27cf5b Small re-factor. Remove not needed complexity.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:51:17 +01:00
Krzysztof Wilczynski
872c7f3c42 Added body of the function flatten.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:50:38 +01:00
Krzysztof Wilczynski
9d0e244771 Moved to unless from if not to improve code clarity. Changed
wording of few error messages.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:49:15 +01:00
Krzysztof Wilczynski
3c4c1c7c20 Moved to unless from if not to improve code clarity. Added TODO
for future reference.  Changed wording of few error messages.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:48:25 +01:00
Krzysztof Wilczynski
9ec50e7968 Added TODO for future reference.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:47:20 +01:00
Krzysztof Wilczynski
5da2005d04 Moved to unless from if not to make code more clear. Plus a variable
name change for simplicity.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:46:03 +01:00
Krzysztof Wilczynski
4b2a0a9e1f Small change to code formatting.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:45:36 +01:00
Krzysztof Wilczynski
20a8892c09 Added comment line.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:45:04 +01:00
Krzysztof Wilczynski
55df5ac566 Added comment line.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:44:49 +01:00
Krzysztof Wilczynski
16eec26b0b Corrected function name from chop to strip. Moved to unless from if not
to improve code clarity.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:43:13 +01:00
Krzysztof Wilczynski
41798020d6 Function has now more robust error detection.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:41:09 +01:00
Krzysztof Wilczynski
b26d5b2f3b Now prefix will convert everything into string which is the same
as join would do.  Also function is now more robust in error detection.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 02:40:04 +01:00
Krzysztof Wilczynski
5fce8a7f54 Added ability to flatten the resulting array in the function zip.
This would allow for creating hashes on the fly from two arrays.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 01:47:41 +01:00
Krzysztof Wilczynski
3b55113c73 Moved to unless from if not and changed wording of few error messages.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 01:00:10 +01:00
Krzysztof Wilczynski
21e39aaeac Moved to unless from if not plus removed surplus empty lines.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 00:59:18 +01:00
Krzysztof Wilczynski
551f4ce95b Moved to unless from if not and removed TODO.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 00:58:37 +01:00
Krzysztof Wilczynski
555c50d735 Moved to unless from if not for code clarity and changed wording
of few error messages.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 00:57:24 +01:00
Krzysztof Wilczynski
0fabca9a65 Adding support for hash and string to the function count.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2011-04-30 00:56:12 +01:00