(#10940) Deprecate --apply in favor of --catalog#227
(#10940) Deprecate --apply in favor of --catalog#227kelseyhightower wants to merge 1 commit intopuppetlabs:masterfrom kelseyhightower:ticket/master/10940_deprecate_apply_for_catalog
--apply in favor of --catalog#227Conversation
|
On Fri, Nov 18, 2011 at 12:09 PM, Kelsey Hightower
We need to carry deprecation warnings for at least 1 full major
|
Without this patch, the `puppet apply` command uses the `--apply` option
to reference a Puppet catalog. This can cause a bit of confusion as both
the subcommand and option have the same name.
This patch improves the usability of the `puppet apply` command by
adding a new `--catalog` option. This patch also adds a deprecation
warning whenever the `--apply` option is used, which advises end-users
to use the `--catalog` option instead.
This patch updates the in-line help documentation by adding help output
for the new `--catalog` option, and adding a deprecation warning for the
`--apply` option.
The plan is to deprecate the `--apply` option in the next 2.7.x release,
and removal in the future. External documentation should be updated to
reflect the new preference towards using the `--catalog` option in-place
of `--apply`.
Preferred method of applying a Puppet catalog using `puppet apply`:
$ puppet apply --catalog <catalog>
This patch also includes the spec tests covering the changes in
behavior.
|
Just to be a little more clear about @stahnma's comment: We won't be able to remove @kelseyhightower It looks like this was based on, and targeted at the master branch (Telly) from the name of your branch, and what the pull request is targeted at. I'm assuming that this is incorrect? |
Without this patch, the
puppet applycommand uses the--applyoptionto reference a Puppet catalog. This can cause a bit of confusion as both
the subcommand and option have the same name.
This patch improves the usability of the
puppet applycommand byadding a new
--catalogoption. This patch also adds a deprecationwarning whenever the
--applyoption is used, which advises end-usersto use the
--catalogoption instead.This patch updates the in-line help documentation by adding help output
for the new
--catalogoption, and adding a deprecation warning for the--applyoption.The plan is to deprecate the
--applyoption in the next 2.7.x release,and removal in the future. External documentation should be updated to
reflect the new preference towards using the
--catalogoption in-placeof
--apply.Preferred method of applying a Puppet catalog using
puppet apply:This patch also includes the spec tests covering the changes in
behavior.