Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-08-04 | Merge branch 'refactor/master/8665_whole_line' | Jeff McCune | |
* refactor/master/8665_whole_line: (#8665) Change type from append_line to whole_line | |||
2011-08-04 | (#8678) Add validate_array and validate_string functions | Jeff McCune | |
The accounts module is making use of validate_array() and validate_string() which do not exist int he stdlib module without this patch. This patch adds the two functions to the stdlib with unit tests. Reviewed-by: Dan Bode | |||
2011-07-30 | Fix some ruby 1.9.2 issues. | Ken Barber | |
2011-07-29 | (#8709) Add hash merging function | Dan Bode | |
In Puppet, it is not possible to reassign hash values. This function allows a reasonable way to perform hash munging in Puppet. Reviewed-by: Jeff McCune | |||
2011-07-29 | (#8708) Add has_key function | Dan Bode | |
It is difficult to use existance of keys in a hash as a boolean condition in Puppet (see #8705) This function provides a working solution until the underlying issue in Puppet can be resolved. Reviewed-by: Jeff McCune | |||
2011-07-29 | (#3) Provide documentation for remaining functions. | Ken Barber | |
2011-07-29 | (#3) Apply missing documentation to more functions. | Ken Barber | |
2011-07-29 | Remove rand. | Ken Barber | |
2011-07-29 | Some improvements to values_at tests. | Ken Barber | |
2011-07-29 | (#1) provide some more detailed tests for a number of functions. | Ken Barber | |
2011-07-29 | Removed date stub since this functinality is available in strftime anyway. | Ken Barber | |
2011-07-29 | (#2) fix is_string finally so it also makes sure numbers return false. | Ken Barber | |
2011-07-29 | (#2) unstub is_valid_domain_name | Ken Barber | |
2011-07-29 | Removed join_with_prefix. | Ken Barber | |
2011-07-29 | (#2) unstub is_valid_mac_address. | Ken Barber | |
2011-07-29 | Allow sort for strings. | Ken Barber | |
2011-07-28 | Count functionality overlaps with size - so removing it. | Ken Barber | |
2011-07-28 | Removed crontab functions instead of unstubbing them. | Ken Barber | |
2011-07-28 | Removed load_variables. load_yaml is sufficient to solve this problem on its ↵ | Ken Barber | |
own. | |||
2011-07-28 | Remove is_valid_netmask instead of unstubbing. Doesn't seem like a sensible ↵ | Ken Barber | |
function on its own. | |||
2011-07-28 | (#2) unstub is_numeric function. | Ken Barber | |
2011-07-28 | (#2) - unstubbed is_valid_ip_address | Ken Barber | |
2011-07-28 | (#1) - added new test for upcase. | Ken Barber | |
2011-07-28 | (#2) - Added is_float and is_integer functionality. | Ken Barber | |
2011-07-27 | (#8665) Change type from append_line to whole_line | Dan Bode | |
Changed the type name from append_line to whole_line. After feedback that having a type with a verb in the name was confusing. | |||
2011-07-26 | (#8628) Add append_line native type | Dan Bode | |
This commit adds a native type that can check if a line exists and append it to a file. This use case seems common enough to warrant its inclusion into stdlib. Reviewed-by: Jeff McCune | |||
2011-07-24 | (#1) - fleshed out some more tests. | Ken Barber | |
2011-06-30 | Few more tests. | Ken Barber | |
2011-06-29 | Add some more functional tests. | Ken Barber | |
2011-06-29 | New abs test. | Ken Barber | |
2011-06-29 | Added tests for each function, fixing functions as we hit bugs. | Ken Barber | |
2011-06-29 | Added kwalify function. | Ken Barber | |
2011-06-29 | Copied function test scaffolding from puppet. | Ken Barber | |
2011-06-21 | (#8010) Add validate_hash spec tests | Jeff McCune | |
These tests run through a number of example cases and exercise the behavior of the validate_hash function. To run, simple execute rspec validate_hash_spec.rb | |||
2011-06-21 | (#8010) Add getvar() rvalue function | Jeff McCune | |
This isn't directly related to #8010, but rather indirectly fills the need to allow the end user to configure where data values are looked up. This allows the namespace to be passed as a class parameter. A module may then quickly and easily look up data from the user-defined namespace. | |||
2011-06-15 | (#3) Add simple unit test for anchor type | Jeff McCune | |
Unlike the whit type the anchor type derives from, we are not hacking the stringify method. We expect the resource to be named simply Anchor[foo::bar] where the name is "foo::bar". | |||
2011-06-03 | Add additional tests to validate_bool() spec | Jeff McCune | |
2011-06-03 | Add spec test for validate_bool function | Jeff McCune | |
This is an interesting spec test for module developers. It illustrates how to cause Puppet to test the function from the Puppet DSL rather than the Ruby DSL, fully exercising the system from the perspective of the end user. (Note how Puppet[:code] is set, then the scope reset, then the compile method called.) Paired-with: Dan Bode <dan@puppetlabs.com> | |||
2011-05-24 | Initial commit | Jeff McCune | |