Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
https://github.com/opscode/chef/issues/2545
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescott authored and jamescott committed Dec 9, 2014
1 parent 7f0f487 commit 2df170b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions includes_resources/includes_resource_execute_attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@
* - ``group``
- |group command|
* - ``path``
- .. warning:: This attribute is deprecated starting in |chef client| 12.0. Use the ``environment`` attribute instead. For example:
- |path resource execute| The default value uses the system path.

.. code-block:: ruby
execute "mycommand" do
environment "PATH" => "/my/path/to/bin:#{ENV["PATH"]}"
end
.. warning:: .. include:: ../../includes_resources_common/includes_resources_common_resource_execute_attribute_path.rst
* - ``provider``
- Optional. |provider resource_parameter| |see providers|
* - ``returns``
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. The contents of this file are included in multiple topics.
.. This file should not be changed in a way that hinders its ability to appear in multiple documentation sets.
Starting with |chef client| 12, using the ``path`` attribute will return a ``NoMethodError`` exception. This is because the ``path`` attribute is not implemented by any provider in any of the previous versions of the |chef client|. Therefore, starting with |chef client| 12, the ``path`` attribute is removed entirely. Cookbooks that use the ``path`` attribute prior to |chef client| 12 should be updated to use the ``environment`` attribute before upgrading to |chef client| 12. For example:
The ``path`` attribute is not implemented by any provider in any version of the |chef client|. Starting with |chef client| 12, using the ``path`` attribute will return a warning. Starting with |chef client| 13, ``path`` is deprecated and using it will return an exception. Cookbooks that currently use the ``path`` attribute should be updated to use the ``environment`` attribute instead. For example:

.. code-block:: ruby
Expand Down

0 comments on commit 2df170b

Please sign in to comment.