summaryrefslogtreecommitdiff
path: root/lib/chef/shell.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update a few more knife.rb references to include config.rbTim Smith2019-05-291-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>
* 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!