puppetlabs-stdlib/spec
David Schmitt 00c881d0da (MODULES-2516) Adds an is_a() function
The data type system is very hard to understand. Many people don't
understand why

    type_of([1,2,3]) == Array

will fail, but

    type_of([1,2,3]) <= Array

passes. This does a simpler validation that doesn't rely on explicit
data types. Instead, use

    $foo = [1,2,3]
    if $foo.is_a(Array) {
      notify { 'This is an array': }
    }

This is based on code by Ben Ford <ben.ford@puppetlabs.com>.

  * Added acceptance tests
  * Added dispatch
  * Improved unit tests
  * Added docs to README
2015-09-14 18:26:25 +01:00
..
acceptance (MODULES-2516) Adds an is_a() function 2015-09-14 18:26:25 +01:00
fixtures (MODULES-2478) Support root_home fact on AIX through "lsuser" command 2015-08-28 15:21:13 +01:00
functions (MODULES-2516) Adds an is_a() function 2015-09-14 18:26:25 +01:00
monkey_patches Add the missing shebangs and fix the wrong ones for rpmlint to stop complaining loudly 2014-05-07 11:49:25 +02:00
unit (MODULES-2478) Support root_home fact on AIX through "lsuser" command 2015-08-28 15:21:13 +01:00
puppetlabs_spec_helper_clone.rb Convert tests to use plain rspec-puppet 2015-06-01 18:02:22 +01:00
spec.opts Copied function test scaffolding from puppet. 2011-06-29 12:25:43 +01:00
spec_helper.rb Remove unused puppet_spec code 2015-06-01 18:02:22 +01:00
spec_helper_acceptance.rb Add puppet_version back to spec_helper 2015-08-11 19:52:43 -07:00