diff options
| author | Paul Lathrop <paul@tertiusfamily.net> | 2008-02-05 14:05:14 -0800 |
|---|---|---|
| committer | Paul Lathrop <paul@tertiusfamily.net> | 2008-02-05 14:05:14 -0800 |
| commit | 8f0d87d498ca12417a7d20b81ba46465658fa210 (patch) | |
| tree | 0e2274bda34a14929d1dfcf09d36e27c9d7d2ac1 /lib | |
| parent | 139ff33e1f93a0634547fc9a06442a720fe0a58e (diff) | |
| download | puppet-8f0d87d498ca12417a7d20b81ba46465658fa210.tar.gz puppet-8f0d87d498ca12417a7d20b81ba46465658fa210.tar.xz puppet-8f0d87d498ca12417a7d20b81ba46465658fa210.zip | |
Added :env parameter for backwards-compatibility, with warning about deprecation. :env parameter sets new :environment parameter. Changed instances of :env to :environment for consistency with other types. Added tests for new parameters. This cimmit fixes ticket 1007.
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/puppet/type/exec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb index a7a046c43..7d3b1abe1 100755 --- a/lib/puppet/type/exec.rb +++ b/lib/puppet/type/exec.rb @@ -228,6 +228,15 @@ module Puppet end end + newparam(:env) do + desc "This parameter is deprecated. Use 'environment' instead." + + munge do |value| + warning "'env' is deprecated on exec; use 'environment' instead." + resource[:environment] = value + end + end + newparam(:environment) do desc "Any additional environment variables you want to set for a command. Note that if you use this to set PATH, it will override |
