summaryrefslogtreecommitdiff
path: root/lib/chef/shell.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix typoVivek Singh2020-04-061-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Rework the welcome text to be more helpfulTim Smith2020-02-051-2/+1
| | | | | | | | Get rid of the old Ohai meme reference Link to the specific doc on how to use the shell Give the version of chef-shell and don't mention Chef Infra Client Signed-off-by: Tim Smith <tsmith@chef.io>
* Properly name the modes in the help textTim Smith2020-02-051-2/+2
| | | | | | It's Chef Infra Client mode vs. Chef Infra Solo vs. Standalone Signed-off-by: Tim Smith <tsmith@chef.io>
* Use the dist variable for chef-serverTim Smith2020-02-051-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Ruby 2.7 IRB and remaining fixesLamont Granquist2020-01-231-0/+22
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix some places where constants from dist.rb were not used. Specifically for ↵Tensibai2019-09-261-4/+4
| | | | | | chef-shell Signed-off-by: Tensibai <tensibai@iabis.net>
* more distro constantsMarc Chamberland2019-06-031-15/+15
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* distro constants for solo, zero and automateMarc Chamberland2019-05-231-2/+2
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-201-4/+4
| | | | | | | | | Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix a bunch of weirdly mangled require linesLamont Granquist2019-05-081-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-12/+12
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Update a few more knife.rb references to include config.rbTim Smith2019-05-071-0/+1
| | | | | | Most of the knife.rb mentions have been updated and the docs have been updated already. Mention both since every existing user is only familiar with knfie.rb. Signed-off-by: Tim Smith <tsmith@chef.io>
* Replacing workmarks with distro constantsMarc Chamberland2019-04-191-4/+5
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* changes for rubocop engine upgrades.lcg/rubocop-upgradesLamont Granquist2019-01-151-1/+1
| | | | | | | this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/IndentHeredocLamont Granquist2018-07-021-8/+8
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-52/+52
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* prepping for rubocop 0.52.1lcg/rubocop-0.52.1Lamont Granquist2018-01-171-1/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Pass json configuration to ShellSession classJon Cowie2017-08-101-0/+1
| | | | | | This commit passes json configuration to ShellSession class and thusly into ChefClient object created by the ShellSession. This fixes an issue where runlists passed in via a json file using the -j flag would not be loaded when running chef-shell in client mode using the -z flag. Signed-off-by: Jon Cowie <jcowie@chef.io>
* Modify chef-shell help messageafiune/COOL-336/tiny-fixSalim Afiune2017-03-201-2/+4
| | | | Signed-off-by: Salim Afiune <afiune@chef.io>
* FIX: use right option name to load configSalim Afiune2017-03-201-1/+1
| | | | Signed-off-by: Salim Afiune <afiune@chef.io>
* Make chef-shell to use SoloSession properlySalim Afiune2017-03-171-5/+22
| | | | Signed-off-by: Salim Afiune <afiune@chef.io>
* Deprecate SoloSession into SoloLegacySessionSalim Afiune2017-03-171-1/+7
| | | | Signed-off-by: Salim Afiune <afiune@chef.io>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-131-1/+1
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Attributes v1.1 changeslcg/attributes-v1.1Lamont Granquist2016-06-271-1/+1
| | | | | | | | | | | - fixes *_unless behavior and set_unless_value_present hack from Chef 12 - simplifies rm_* code - introduces functional read/write/unlink/exist? API - deprecates method_missing access to attributes for Chef 13 - deprecates set/set_unless aliases for Chef 14 - removes MultiMash mess that I wrote for Chef 13 https://github.com/chef/chef/pull/5029 for more details
* Tighten up wording (thanks @danielsdeleo!)Jos Backus2016-02-171-1/+1
|
* chef-client: add --[no]skip-cookbook-sync optionJos Backus2016-02-171-0/+5
| | | | | Use with caution. Useful for patching a set of cookbooks on a machine when iterating during development.
* autofixing whitespace copsLamont Granquist2016-02-051-5/+4
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-22/+22
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* reflect https://github.com/chef/chef/pull/3227#issuecomment-94560685sawanoboly2015-04-211-1/+1
|
* Show Chef::VERSION at prompt_c and prompt_i on shell sessionsawanoboly2015-04-151-2/+2
|
* Modify accesses to HOME to use path_helper instead.Kartik Null Cating-Subramanian2015-03-201-5/+7
|
* Use platform_specific_path in chef shelljdmundrawala/path-sep-refactorJay Mundrawala2014-11-141-10/+2
|
* chef-shell checks platform when looking for client.rb and solo.rb.jdmundrawala/chef-shell-windowsJay Mundrawala2014-11-101-2/+10
| | | | | | https://github.com/opscode/chef/issues/2380 pointed out that on windows, -c is required with the -z flag because it would assume nix and look in /etc/chef for client.rb
* Merge pull request #1443 from opscode/ryancragun/CHEF-5314_11-masterClaire McQuin2014-06-111-0/+7
|\ | | | | [CHEF-5314] Support override_runlist CLI option in shef/chef-shell
| * [CHEF-5314] Support override_runlist CLI option in shef/chef-shellRyan Cragun2014-05-201-0/+7
| |
* | [CHEF-4224] tracing? throws an exception when chef-shell is first startedJulian C. Dunn2014-05-031-0/+1
|/
* Move json attribs fetching to a classdanielsdeleo2013-10-161-19/+3
| | | | | | * Extract duplicated code for fetching/reading JSON attributes to a shared class * Use HTTP::Simple instead of Chef::REST
* Fix chef-shell for log_level == :autodanielsdeleo2012-11-201-1/+3
| | | | Also add functional regression tests
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+327
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!