summaryrefslogtreecommitdiff
path: root/lib/chef/knife
Commit message (Collapse)AuthorAgeFilesLines
* Rescue Train::UserError and re-try with su_passwordVivek Singh2021-02-021-16/+17
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Fix AIX su password match stringVivek Singh2021-02-021-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Passed block and limits resursive callsVivek Singh2021-02-021-16/+6
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Fixed test case failureVivek Singh2021-02-021-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* handles su - USER sesssion to perform bootstrapVivek Singh2021-02-021-4/+63
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Fix chefstyle violations.Pete Higgins2020-12-301-1/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Fix knife status json output for EC2 instance with no public IP.Pete Higgins2020-12-301-1/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Untangle some gnarly code.Pete Higgins2020-12-301-7/+4
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Rename a variable to get rid of a spelling exception.Pete Higgins2020-12-301-2/+2
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Move FormattingOptions to its own file and remove duplication.Pete Higgins2020-12-306-54/+55
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Windows Trusted cert path slashes fixaxelrtgs2020-12-151-1/+1
| | | | Signed-off-by: Jamie Zaharopoulos <jamie@axelrtgs.com>
* make rubocop happyRobert Vežnaver2020-12-111-0/+1
| | | | Signed-off-by: Robert Vežnaver <rveznaver@users.noreply.github.com>
* tty-prompt already required in core/ui.rbRobert Vežnaver2020-12-111-1/+0
| | | | Signed-off-by: Robert Vežnaver <rveznaver@users.noreply.github.com>
* Raise error and retry with PTY on sudo password promptRobert Vežnaver2020-12-101-0/+2
| | | | Signed-off-by: Robert Vežnaver <rveznaver@users.noreply.github.com>
* Fix for deprecation warningKapil Chouhan2020-12-091-1/+1
| | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* Add missing require for TTY::Prompt.Pete Higgins2020-12-021-1/+4
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Use URI::DEFAULT_PARSER.make_regexp instead of URI.regexpTim Smith2020-11-271-1/+1
| | | | | | RuboCop claims that URI.regexp is the obsolete way of doing this. Both produce the same regex. Signed-off-by: Tim Smith <tsmith@chef.io>
* require net/sshVSingh/require-net-sshVivek Singh2020-11-121-0/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Don't uses regexes in splits when we don't need tono_regex_in_splitTim Smith2020-11-082-2/+2
| | | | | | We can do this with strings alone Signed-off-by: Tim Smith <tsmith@chef.io>
* Simplify regexes by removing extra character classesTim Smith2020-10-302-2/+2
| | | | | | We're working too hard here. No need for these. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #10574 from TimothyTitan/patch-1Tim Smith2020-10-291-0/+2
|\ | | | | Fix download errors during knife bootstrap on windows due to lack of TLS 1.2 support
| * Update windows_bootstrap_context.rbTim Titan2020-10-291-0/+2
| | | | | | | | | | Adding tls1.2 support for powershell. From - https://github.com/chef/chef/issues/8713
* | fix secret options in windows bootstrapmwrock2020-10-292-6/+7
|/ | | | Signed-off-by: mwrock <matt@mattwrock.com>
* Merge pull request #10463 from 007lva/chore/use-ruby-2.6-endless-rangeTim Smith2020-09-2511-13/+13
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Use Ruby 2.6 endless Range syntax007lva2020-09-2411-13/+13
| | | | | | | | Signed-off-by: Luigi <007.lva@gmail.com>
* | Remove unnecessary require.remove-requirePete Higgins2020-09-241-1/+0
|/ | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Gate requires in chef-utils and chef-config as wellrequiresTim Smith2020-09-201-1/+1
| | | | | | Update the cop config to handle those as well Signed-off-by: Tim Smith <tsmith@chef.io>
* Resolve Style/RedundantCondition copTim Smith2020-09-161-1/+1
| | | | | | We have some extra conditionals that aren't getting us anything Signed-off-by: Tim Smith <tsmith@chef.io>
* Workaround rubygems slow requires by only running require for chef-utils/distLance Albertson2020-09-1511-11/+11
| | | | Signed-off-by: Lance Albertson <lance@osuosl.org>
* Move chef-config/dist to chef-utils/distLance Albertson2020-09-151-1/+1
| | | | | | | | | | This migrates constants used in chef-config/dist to chef-utils/dist so that they all reside in one place. Other changes include: - Remove Compliance, Inspec, Run, Inspec, Workstation class constants as they are new and not being used yet. Leave this to be added in a later PR. Signed-off-by: Lance Albertson <lance@osuosl.org>
* merge all dist files back into dist.rbMarc Chamberland2020-09-159-9/+9
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* tighten all require statements for dist implementationMarc Chamberland2020-09-1511-11/+11
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* move dist implementation into chef-utilsMarc Chamberland2020-09-1513-53/+53
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* Use __dir__ instead of getting the dir of __FILE__Tim Smith2020-09-091-1/+1
| | | | | | This is a bit easier to read Signed-off-by: Tim Smith <tsmith@chef.io>
* autoload license_acceptance/acceptor in knife loadingmwrock2020-09-091-1/+3
| | | | Signed-off-by: mwrock <matt@mattwrock.com>
* use autoloading for many required gemsmwrock2020-09-082-2/+2
| | | | Signed-off-by: mwrock <matt@mattwrock.com>
* Resolve RuboCop Style/RedundantInterpolation warningsTim Smith2020-09-081-1/+1
| | | | | | Resolve the issues that pete pointed out plus a few others Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove border color optionVSingh/knife-list-deprecation-updateVivek Singh2020-08-261-2/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Use ||= instead of const_defined? checkVivek Singh2020-08-261-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* remove duplication of deprecated optionsVivek Singh2020-08-265-248/+29
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* more config specs cleanupVivek Singh2020-08-261-1/+0
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Update `knife config list` with new behavior and fix tests.Pete Higgins2020-08-251-28/+41
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Merge pull request #10341 from chef/VSingh/add-tty-tableTim Smith2020-08-251-26/+39
|\ | | | | knife config list-profiles UI with tty-table
| * require tty-screenVSingh/add-tty-tableVivek Singh2020-08-251-0/+1
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * Remove to_s operation to every itemVivek Singh2020-08-241-1/+1
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * Fix failing specsVivek Singh2020-08-241-3/+2
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * Add tty-table & render config listVivek Singh2020-08-241-25/+38
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Fix warn message typosVSingh/knife-config-optionsVivek Singh2020-08-254-4/+4
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Add deprecation warningVivek Singh2020-08-254-0/+12
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Added config list use & show sub commandVivek Singh2020-08-253-0/+316
|/ | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>