]> gitweb.fluxo.info Git - puppet-stdlib.git/log
puppet-stdlib.git
10 years agoMerge pull request #559 from DavidS/fm-3802-fix-ensure_resource-test
TP Honey [Thu, 17 Dec 2015 13:59:52 +0000 (13:59 +0000)]
Merge pull request #559 from DavidS/fm-3802-fix-ensure_resource-test

(FM-3802) make ensure_resource test of packages

10 years ago(FM-3802) make ensure_resource test of packages
David Schmitt [Thu, 17 Dec 2015 13:50:15 +0000 (13:50 +0000)]
(FM-3802) make ensure_resource test of packages

This ensures that the test passes independently of changes to rubygems.

10 years agoMerge pull request #558 from puppetlabs/4.10.x
Jesse Lovelace [Tue, 15 Dec 2015 20:53:01 +0000 (14:53 -0600)]
Merge pull request #558 from puppetlabs/4.10.x

4.10.x mergeback

10 years agoMerge pull request #557 from jbondpdx/4.10.x
Bryan Jen [Mon, 14 Dec 2015 22:06:08 +0000 (15:06 -0700)]
Merge pull request #557 from jbondpdx/4.10.x

edits to README

10 years agomore carriage returns
jbondpdx [Mon, 14 Dec 2015 21:35:23 +0000 (13:35 -0800)]
more carriage returns

10 years agomore carriage returns, no
jbondpdx [Mon, 14 Dec 2015 19:57:01 +0000 (11:57 -0800)]
more carriage returns, no

10 years agoremoving mid-line carriage returns
jbondpdx [Mon, 14 Dec 2015 19:50:51 +0000 (11:50 -0800)]
removing mid-line carriage returns

10 years agoedits to README
jbondpdx [Mon, 14 Dec 2015 19:19:53 +0000 (11:19 -0800)]
edits to README

10 years agoMerge pull request #556 from HelenCampbell/4.10.0_prep
Bryan Jen [Fri, 11 Dec 2015 20:26:46 +0000 (13:26 -0700)]
Merge pull request #556 from HelenCampbell/4.10.0_prep

Changelog and versionbump for 4.10.0

10 years agoChangelog and versionbump for 4.10.0
Helen Campbell [Fri, 11 Dec 2015 20:08:25 +0000 (20:08 +0000)]
Changelog and versionbump for 4.10.0

10 years agoMerge pull request #554 from kjetilho/ticket/2886-seeded_rand
Bryan Jen [Thu, 10 Dec 2015 18:54:10 +0000 (11:54 -0700)]
Merge pull request #554 from kjetilho/ticket/2886-seeded_rand

(#2886) seeded_rand: new function

10 years agoMerge pull request #555 from puppetlabs/4.9.x
TP Honey [Tue, 8 Dec 2015 15:47:14 +0000 (15:47 +0000)]
Merge pull request #555 from puppetlabs/4.9.x

4.9.x Mergeback

10 years ago(#2886) seeded_rand: new function
Kjetil Torgrim Homme [Tue, 8 Dec 2015 13:59:12 +0000 (14:59 +0100)]
(#2886) seeded_rand: new function

seeded_rand is needed for repeatable randomness across nodes in a cluster

10 years agoMerge pull request #546 from jdevesa/validate_ip
Bryan Jen [Mon, 30 Nov 2015 18:10:57 +0000 (11:10 -0700)]
Merge pull request #546 from jdevesa/validate_ip

Add validator for any IP address

10 years agoAdd validator for any IP address
Jaume Devesa [Thu, 19 Nov 2015 11:47:01 +0000 (12:47 +0100)]
Add validator for any IP address

Provide a validator for IP addresses, regardless they are IPv4 or IPv6,
and its documentation.

10 years agoMerge pull request #550 from tphoney/release_4.9.1
Bryan Jen [Wed, 25 Nov 2015 01:06:43 +0000 (18:06 -0700)]
Merge pull request #550 from tphoney/release_4.9.1

4.9.1 release prep

10 years ago4.9.1 release prep
tphoney [Mon, 23 Nov 2015 15:00:40 +0000 (15:00 +0000)]
4.9.1 release prep

10 years agoMerge pull request #551 from mattbostock/fix_ipv4_doc
David Schmitt [Tue, 24 Nov 2015 10:41:30 +0000 (10:41 +0000)]
Merge pull request #551 from mattbostock/fix_ipv4_doc

Fix reference to validate_bool in IP4 function

10 years agoFix reference to validate_bool in IP4 function
Matt Bostock [Mon, 23 Nov 2015 23:45:55 +0000 (23:45 +0000)]
Fix reference to validate_bool in IP4 function

The documentation in `validate_ipv4_address` references `validate_bool`,
but I believe this should read `validate_ipv4_address` instead, which
makes more sense.

10 years agoMerge pull request #548 from bmjen/ruby187
Hunter Haugen [Fri, 20 Nov 2015 20:44:27 +0000 (12:44 -0800)]
Merge pull request #548 from bmjen/ruby187

Fix Gemfile to work with ruby 1.8.7

10 years agoFix Gemfile to work with ruby 1.8.7
Bryan Jen [Fri, 20 Nov 2015 19:14:30 +0000 (12:14 -0700)]
Fix Gemfile to work with ruby 1.8.7

10 years agoMerge pull request #543 from ghoneycutt/patch-2
Bryan Jen [Fri, 20 Nov 2015 16:09:52 +0000 (09:09 -0700)]
Merge pull request #543 from ghoneycutt/patch-2

Use absolute class name in example

10 years agoMerge pull request #547 from reidmv/fm_3773
Bryan Jen [Fri, 20 Nov 2015 16:07:56 +0000 (09:07 -0700)]
Merge pull request #547 from reidmv/fm_3773

(FM-3773) Fix root_home fact on AIX 5.x

10 years ago(FM-3773) Fix root_home fact on AIX 5.x
Reid Vandewiele [Thu, 19 Nov 2015 23:29:06 +0000 (15:29 -0800)]
(FM-3773) Fix root_home fact on AIX 5.x

The -C (capital C) flag to lsuser is incorrect. It should be -c
(lowercase).

this commit updates the aix root_home fact to use `lsuser -c`, rather
than `lsuser -C`.

10 years agoMerge pull request #544 from HelenCampbell/readmeaddition
David Schmitt [Mon, 9 Nov 2015 15:17:01 +0000 (15:17 +0000)]
Merge pull request #544 from HelenCampbell/readmeaddition

pick_default addition to readme

10 years agopick_default addition to readme
Helen Campbell [Mon, 9 Nov 2015 15:14:34 +0000 (15:14 +0000)]
pick_default addition to readme

10 years agoUse absolute class name in example
Garrett Honeycutt [Fri, 6 Nov 2015 17:19:21 +0000 (12:19 -0500)]
Use absolute class name in example

10 years agoMerge pull request #542 from greg0ire/patch-1
Helen [Fri, 6 Nov 2015 16:45:29 +0000 (16:45 +0000)]
Merge pull request #542 from greg0ire/patch-1

use properly encoded characters

10 years agouse properly encoded characters
Grégoire Paris [Tue, 3 Nov 2015 16:04:10 +0000 (17:04 +0100)]
use properly encoded characters

This is more severe than it sounds. These characters make puppet fail with the following message :

> Error 400 on SERVER: "\xC3" on US-ASCII

10 years agoMerge pull request #541 from mattflaschen/patch-1
David Schmitt [Wed, 28 Oct 2015 10:15:08 +0000 (10:15 +0000)]
Merge pull request #541 from mattflaschen/patch-1

Fix capitalize docs

10 years agoFix capitalize docs
Matt Flaschen [Tue, 27 Oct 2015 22:09:18 +0000 (18:09 -0400)]
Fix capitalize docs

Capitalize lower-cases the remaining characters (due to the Ruby function having this behavior); document this, and make minor wording tweaks.

10 years agoMerge pull request #540 from marrero984/update_str2bool_readme
David Schmitt [Fri, 23 Oct 2015 08:51:56 +0000 (09:51 +0100)]
Merge pull request #540 from marrero984/update_str2bool_readme

(#2183) updated str2bool readme wording

10 years ago(#2183) updated str2bool readme wording
marrero984 [Thu, 22 Oct 2015 20:58:57 +0000 (13:58 -0700)]
(#2183) updated str2bool readme wording

10 years agoMerge pull request #538 from mmckinst/bool2str_enhance
David Schmitt [Fri, 16 Oct 2015 08:31:01 +0000 (09:31 +0100)]
Merge pull request #538 from mmckinst/bool2str_enhance

add functionality to bool2str function

10 years agoadd functionality to bool2str to return strings of your choice for a boolean
Mark McKinstry [Fri, 16 Oct 2015 02:22:10 +0000 (22:22 -0400)]
add functionality to bool2str to return strings of your choice for a boolean

10 years agoMerge pull request #539 from mentat/MODULES-2696
Hunter Haugen [Thu, 15 Oct 2015 17:23:02 +0000 (10:23 -0700)]
Merge pull request #539 from mentat/MODULES-2696

Add check to ensure regex does not throw for none type.

10 years agoAdd check to ensure regex does not throw for none type.
Jesse Lovelace [Thu, 15 Oct 2015 16:25:57 +0000 (11:25 -0500)]
Add check to ensure regex does not throw for none type.

Add a quick check to ensure puppetversion value is not nil and supporting test.

10 years agoMerge pull request #537 from cmurphy/fix_load_module_metadata
David Schmitt [Thu, 15 Oct 2015 08:44:12 +0000 (09:44 +0100)]
Merge pull request #537 from cmurphy/fix_load_module_metadata

Fix load module metadata

10 years agoLet load_module_metadata succeed on empty file
Colleen Murphy [Wed, 14 Oct 2015 23:09:05 +0000 (16:09 -0700)]
Let load_module_metadata succeed on empty file

Some modules or module versions don't have a metadata.json file, but we
might still want to use the load_module_metadata function on them. The
lack of a file can still give us important information. For example, it
might tell us that the version of the module installed is "very old"
even if we can't read the version number directly. This patch adds a
parameter to let the user specify if an empty file is acceptable. To
preserve backwards compatibility it does not change the current default
behavior, which is to raise an error if metadata.json does not exist.

10 years agoRename load_module_metadata test path
Colleen Murphy [Wed, 14 Oct 2015 22:59:09 +0000 (15:59 -0700)]
Rename load_module_metadata test path

`rake spec` only finds test files that end in _spec.rb, so this test
was not being run. Correct the path name so that the test runs
properly.

10 years agoMerge pull request #536 from DavidS/improve-file_line-docs
TP Honey [Wed, 14 Oct 2015 11:46:19 +0000 (12:46 +0100)]
Merge pull request #536 from DavidS/improve-file_line-docs

(MODULES-2421) improve description of file_line

10 years ago(MODULES-2421) improve description of file_line
David Schmitt [Tue, 13 Oct 2015 14:02:04 +0000 (15:02 +0100)]
(MODULES-2421) improve description of file_line

This mostly needed extraction of the existing doc strings from
the type.

10 years agoMerge pull request #535 from martinpfeifer/package_provider_fact
David Schmitt [Tue, 13 Oct 2015 09:18:59 +0000 (10:18 +0100)]
Merge pull request #535 from martinpfeifer/package_provider_fact

prevent deprecation warning about the allow_virtual parameter

10 years agoprevent deprecation warning about the allow_virtual parameter
Martin Pfeifer [Tue, 13 Oct 2015 08:08:01 +0000 (10:08 +0200)]
prevent deprecation warning about the allow_virtual parameter

10 years agoMerge pull request #534 from asasfu/feature/package_provider_fact
Bryan Jen [Thu, 1 Oct 2015 17:27:51 +0000 (10:27 -0700)]
Merge pull request #534 from asasfu/feature/package_provider_fact

Add package_provider fact

10 years agoMerge pull request #533 from HelenCampbell/MODULES-2614-Improved
David Schmitt [Mon, 28 Sep 2015 16:11:10 +0000 (17:11 +0100)]
Merge pull request #533 from HelenCampbell/MODULES-2614-Improved

Modules 2614 improved numeric value handling on empty function

10 years agoAdded acceptance test and updated readme
Helen Campbell [Mon, 28 Sep 2015 15:18:56 +0000 (16:18 +0100)]
Added acceptance test and updated readme

10 years agoCheck for numeric values as empty fails on those
Roman Mueller [Tue, 22 Sep 2015 16:05:37 +0000 (18:05 +0200)]
Check for numeric values as empty fails on those

10 years agoMerge pull request #532 from DavidS/fix-is_a-readme
Helen [Mon, 28 Sep 2015 10:16:28 +0000 (11:16 +0100)]
Merge pull request #532 from DavidS/fix-is_a-readme

(FM-3701) Update README for is_a

10 years ago(FM-3701) Update README for is_a
David Schmitt [Mon, 28 Sep 2015 10:12:25 +0000 (11:12 +0100)]
(FM-3701) Update README for is_a

10 years agoMerge pull request #531 from asasfu/improvement/service_provider_fact
David Schmitt [Mon, 28 Sep 2015 09:09:17 +0000 (10:09 +0100)]
Merge pull request #531 from asasfu/improvement/service_provider_fact

fixup-PR#506 Speed improvements in facter resolution

10 years agofixup-PR#506 Speed improvements in facter resolution
Adam S [Sat, 26 Sep 2015 00:58:05 +0000 (17:58 -0700)]
fixup-PR#506 Speed improvements in facter resolution

This is to improve speed on Facter resolution of service_provider fact
that was just introduced in PR# 506.  The improvements go from 280ms
resolution time approx. down to 2ms resolution time approx. by adding
requires statements.

10 years agoAdd package_provider fact
Adam S [Sat, 26 Sep 2015 00:55:21 +0000 (17:55 -0700)]
Add package_provider fact

This adds a package_provider fact for situations where we need to be
able to know the client's package provider in a simple way.  Situations
such as: package { 'name': install_options => [] }  As those tend to be
package provider specific options.

10 years agoMerge pull request #506 from binford2k/feature/service_provider_fact
Hunter Haugen [Thu, 24 Sep 2015 17:55:39 +0000 (10:55 -0700)]
Merge pull request #506 from binford2k/feature/service_provider_fact

Add a service_provider fact

10 years agoMerge pull request #530 from HelenCampbell/MODULES-2614
David Schmitt [Wed, 23 Sep 2015 10:38:53 +0000 (11:38 +0100)]
Merge pull request #530 from HelenCampbell/MODULES-2614

Adding update to empty function readme

10 years agoAdding update to empty function readme
Helen Campbell [Wed, 23 Sep 2015 10:27:48 +0000 (11:27 +0100)]
Adding update to empty function readme

10 years agoMerge pull request #528 from mhaskel/is_a_fixes
Bryan Jen [Mon, 21 Sep 2015 23:33:22 +0000 (16:33 -0700)]
Merge pull request #528 from mhaskel/is_a_fixes

Update is_a acceptance tests to only run on puppet4

10 years agoUpdate is_a acceptance tests to only run on puppet4
Morgan Haskel [Mon, 21 Sep 2015 21:12:25 +0000 (14:12 -0700)]
Update is_a acceptance tests to only run on puppet4

10 years agoMerge pull request #527 from mhaskel/511_compatibility
Bryan Jen [Mon, 21 Sep 2015 18:20:35 +0000 (11:20 -0700)]
Merge pull request #527 from mhaskel/511_compatibility

Fix backwards compatibility from #511

10 years agoFix backwards compatibility from #511
Morgan Haskel [Mon, 21 Sep 2015 17:56:08 +0000 (10:56 -0700)]
Fix backwards compatibility from #511

Maintain the old behavior in the case where the optional second
parameter isn't passed. Also, adding arity is backwards incompatible since
stdlib still supports 2.7, so remove that.

10 years agoMerge pull request #526 from DavidS/improve-validate_re-docs
Hunter Haugen [Thu, 17 Sep 2015 19:12:12 +0000 (12:12 -0700)]
Merge pull request #526 from DavidS/improve-validate_re-docs

(MAINT) validate_re: Clarify docs and error message

10 years ago(MAINT) validate_re: Clarify docs and error message
David Schmitt [Thu, 17 Sep 2015 17:48:32 +0000 (18:48 +0100)]
(MAINT) validate_re: Clarify docs and error message

10 years agoMerge pull request #524 from binford2k/docs/intersection_truthiness
David Schmitt [Mon, 14 Sep 2015 18:36:56 +0000 (19:36 +0100)]
Merge pull request #524 from binford2k/docs/intersection_truthiness

Clarify what an empty intersection looks like.

10 years agoClarify what an empty intersection looks like.
Ben Ford [Mon, 14 Sep 2015 18:25:38 +0000 (11:25 -0700)]
Clarify what an empty intersection looks like.

10 years agoMerge pull request #523 from DavidS/modules-2516-is_a
Bryan Jen [Mon, 14 Sep 2015 17:49:50 +0000 (10:49 -0700)]
Merge pull request #523 from DavidS/modules-2516-is_a

(MODULES-2561) add is_a function

10 years agoMerge pull request #511 from dmitryilyin/parseyaml_default
Bryan Jen [Mon, 14 Sep 2015 17:40:35 +0000 (10:40 -0700)]
Merge pull request #511 from dmitryilyin/parseyaml_default

[MODULES-2462] Improve parseyaml function

10 years ago(MODULES-2516) Adds an is_a() function
David Schmitt [Mon, 14 Sep 2015 17:26:25 +0000 (18:26 +0100)]
(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

10 years agoMerge pull request #518 from logicminds/case_insensitive
TP Honey [Wed, 9 Sep 2015 10:20:18 +0000 (11:20 +0100)]
Merge pull request #518 from logicminds/case_insensitive

accept any case of boolean strings

10 years agoMerge pull request #519 from dmitryilyin/fetch
TP Honey [Tue, 8 Sep 2015 10:15:45 +0000 (11:15 +0100)]
Merge pull request #519 from dmitryilyin/fetch

[MAINT] Improve 'try_get_value' readme

10 years ago[MAINT] Improve 'try_get_value' readme
Dmitry Ilyin [Fri, 4 Sep 2015 16:12:21 +0000 (19:12 +0300)]
[MAINT] Improve 'try_get_value' readme

10 years agoaccept any case of boolean strings
Corey Osman [Thu, 3 Sep 2015 17:31:51 +0000 (10:31 -0700)]
accept any case of boolean strings

  * previously the str2bool function did not accept 'TRUE' as a bool
    type.  This causes the function to now accept TRUE, FALSE strings
    as a boolean type in order to be converted to a proper boolean.
  * This would also cause Y,N, YES, NO to be accepted as boolean types
    as well.

10 years agoRelease Prep 4.9.0
Jonathan Tripathy [Thu, 3 Sep 2015 14:17:32 +0000 (15:17 +0100)]
Release Prep 4.9.0

10 years agoMerge pull request #517 from DavidS/try_get_value-acceptance
TP Honey [Wed, 2 Sep 2015 12:42:11 +0000 (13:42 +0100)]
Merge pull request #517 from DavidS/try_get_value-acceptance

(MAINT) fix up try_get_value acceptance test

10 years ago(MAINT) fix up try_get_value acceptance test
David Schmitt [Wed, 2 Sep 2015 12:34:15 +0000 (13:34 +0100)]
(MAINT) fix up try_get_value acceptance test

10 years agoMerge pull request #513 from dmitryilyin/fetch
David Schmitt [Wed, 2 Sep 2015 08:23:46 +0000 (09:23 +0100)]
Merge pull request #513 from dmitryilyin/fetch

Add a new function "try_get_value"

10 years agoAdd a new function "try_get_value"
Dmitry Ilyin [Tue, 1 Sep 2015 18:39:16 +0000 (21:39 +0300)]
Add a new function "try_get_value"

* Extracts a value from a deeply-nested data structure
* Returns default if a value could not be extracted

10 years agoMerge pull request #515 from jfautley/ticket/MODULES-2478-support_root_home_fact_on_AIX
David Schmitt [Tue, 1 Sep 2015 07:31:31 +0000 (08:31 +0100)]
Merge pull request #515 from jfautley/ticket/MODULES-2478-support_root_home_fact_on_AIX

(MODULES-2478) Make root_home fact work on AIX using native lsuser command

10 years ago(MODULES-2478) Support root_home fact on AIX through "lsuser" command
Jon Fautley [Thu, 27 Aug 2015 13:53:02 +0000 (14:53 +0100)]
(MODULES-2478) Support root_home fact on AIX through "lsuser" command

Squashed, and amended test for comment lines.

10 years agoMerge pull request #514 from DavidS/add-convert_base
TP Honey [Thu, 27 Aug 2015 09:50:29 +0000 (10:50 +0100)]
Merge pull request #514 from DavidS/add-convert_base

Adds a convert_base function, which can convert numbers between bases

10 years agoAdds a convert_base function, which can convert numbers between bases
fhats [Thu, 27 Aug 2015 09:40:20 +0000 (10:40 +0100)]
Adds a convert_base function, which can convert numbers between bases

Squashed, improved docs, updated error handling and unit tests by David S.

10 years ago[MODULES-2462] Improve parseyaml function
Dmitry Ilyin [Mon, 24 Aug 2015 19:00:18 +0000 (22:00 +0300)]
[MODULES-2462] Improve parseyaml function

* Add default value support
  Second argument will be returned if yaml cannot be parsed
  instead of false value
* Update tests

10 years agoMerge pull request #512 from Jetroid/consistentreadme
David Schmitt [Tue, 25 Aug 2015 09:51:39 +0000 (10:51 +0100)]
Merge pull request #512 from Jetroid/consistentreadme

Consistent Readme

10 years agoAdd consistent *Type* information
Jetroid [Tue, 25 Aug 2015 09:35:57 +0000 (10:35 +0100)]
Add consistent *Type* information

Remove trailing whitespace

Two functions had not been given any *Type* information. This commit fixes that.

10 years agoMerge pull request #510 from DavidS/base64-unit-tests
Morgan Haskel [Mon, 24 Aug 2015 20:47:24 +0000 (13:47 -0700)]
Merge pull request #510 from DavidS/base64-unit-tests

(MAINT) improve base64 unit tests

10 years ago(MAINT) improve base64 unit tests
David Schmitt [Mon, 24 Aug 2015 19:12:14 +0000 (20:12 +0100)]
(MAINT) improve base64 unit tests

10 years agoMerge pull request #507 from Jetroid/mod2456
David Schmitt [Mon, 24 Aug 2015 13:36:20 +0000 (14:36 +0100)]
Merge pull request #507 from Jetroid/mod2456

(MODULES-2456) Modify union to accept more than two arrays

10 years ago(MODULE-2456) Modify union to accept more than two arrays
Jetroid [Mon, 24 Aug 2015 11:01:29 +0000 (12:01 +0100)]
(MODULE-2456) Modify union to accept more than two arrays

Add spec tests to test the new functionality:
 *Case for 3 arrays.
 *Case for 4 arrays.
Modify README to note new functionality.

This is for issue MODULE-2456, follow the precedent of MODULE-444.

This change allows union to be much more useful, unioning many arrays
in one line rather than in n lines. Additionally, as this is only added
functionality, and does not affect the 2 array case that all modules
currently using array are using, it should not affect any existing
modules utilizing union.

This is now useful, for example, for merging many arrays of resources
(eg: packages.) to generate just one list with no duplicates, to avoid
duplicate resource declarations.

10 years agoAdd a service_provider fact
Ben Ford [Wed, 19 Aug 2015 15:31:36 +0000 (08:31 -0700)]
Add a service_provider fact

This returns the default provider Puppet will choose to manage services
on this system by instantiating a dummy service resource type and
returning the provider chosen.

Co-Authored-By: Simon Fraser University <asa188@sfu.ca>
10 years agoMerge pull request #505 from gibbsoft/dos2unix
David Schmitt [Fri, 14 Aug 2015 12:51:51 +0000 (13:51 +0100)]
Merge pull request #505 from gibbsoft/dos2unix

(MODULES-2410) Add new functions dos2unix and unix2dos

10 years ago(MODULES-2410) Add new functions dos2unix and unix2dos
Nigel Gibbs [Fri, 14 Aug 2015 08:33:46 +0000 (09:33 +0100)]
(MODULES-2410) Add new functions dos2unix and unix2dos

10 years agoMerge pull request #499 from jearls/2370-use-match-for-ensure-absent
Bryan Jen [Thu, 13 Aug 2015 17:14:13 +0000 (10:14 -0700)]
Merge pull request #499 from jearls/2370-use-match-for-ensure-absent

[MODULES-2370] allow `match` parameter to influence `ensure => absent` behavior.

10 years agoMerge pull request #503 from puppetlabs/4.8.x
Morgan Haskel [Wed, 12 Aug 2015 21:33:07 +0000 (14:33 -0700)]
Merge pull request #503 from puppetlabs/4.8.x

Mergeback 4.8.x

10 years agoAdd puppet_version back to spec_helper
Hunter Haugen [Wed, 12 Aug 2015 02:52:43 +0000 (19:52 -0700)]
Add puppet_version back to spec_helper

10 years agoMerge pull request #502 from hunner/fix_after
Morgan Haskel [Tue, 11 Aug 2015 23:23:52 +0000 (16:23 -0700)]
Merge pull request #502 from hunner/fix_after

Sometimes this exits 1

10 years agoSometimes this exits 1
Hunter Haugen [Tue, 11 Aug 2015 23:23:06 +0000 (16:23 -0700)]
Sometimes this exits 1

10 years agoMerge pull request #501 from hunner/bug_helper
TP Honey [Tue, 11 Aug 2015 15:43:58 +0000 (16:43 +0100)]
Merge pull request #501 from hunner/bug_helper

Fix extraneous end

10 years agoFix extraneous end
Hunter Haugen [Tue, 11 Aug 2015 15:29:48 +0000 (08:29 -0700)]
Fix extraneous end

10 years agoMerge pull request #500 from hunner/prep_4.8.0
Bryan Jen [Mon, 10 Aug 2015 23:48:57 +0000 (16:48 -0700)]
Merge pull request #500 from hunner/prep_4.8.0

Prep 4.8.0

10 years agoPrep 4.8.0
Hunter Haugen [Mon, 10 Aug 2015 23:15:54 +0000 (16:15 -0700)]
Prep 4.8.0

10 years agoallow `match` parameter to influence `ensure => absent` behavior.
Johnson Earls [Thu, 6 Aug 2015 20:00:11 +0000 (13:00 -0700)]
allow `match` parameter to influence `ensure => absent` behavior.

Split the `destroy` method of the file_type::ruby provider into two
private methods:  `handle_destroy_line` which is the same as the previous
`destroy` method, and `handle_destroy_with_match` which will destroy any
line which matches the `match` parameter, raising an error if multiple
lines match and the `multiple` parameter is not `true`.  This new
behavior is only used if the new boolean parameter `match_for_absence`
is `true` (it defaults to `false`).