summaryrefslogtreecommitdiff
path: root/lib/chef/application
Commit message (Collapse)AuthorAgeFilesLines
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-192-3/+3
| | | | no enforced trailing comma on arguments...
* Tighten up wording (thanks @thommay!)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.
* fix alignmentlcg/bump-rubocopLamont Granquist2016-02-121-1/+1
|
* pull rubocop 0.37.2 into chefstyleLamont Granquist2016-02-121-2/+2
| | | | | this is from the same ruleset that we had, but the new code catches more conditions.
* Merge pull request #4541 from chef/lcg/chefstyle-batchLamont Granquist2016-02-112-3/+3
|\ | | | | fix a batch of cops
| * auto fixing some rubocopsLamont Granquist2016-02-092-3/+3
| | | | | | | | | | | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* | rubocop demands a sacrificelcg/remove-rm-rfLamont Granquist2016-02-101-1/+1
| |
* | use Pathname correctlyLamont Granquist2016-02-101-1/+2
| |
* | fix windows path issues correctlyLamont Granquist2016-02-101-1/+1
| | | | | | | | this really closes #1515 and #1751
* | remove rm -rf in chef solo recipe_urlLamont Granquist2016-02-102-17/+40
|/ | | | | | | | | | | - deprecates '-r' used for the recipe_url in chef-solo - adds --delete-entire-chef-repo option for users who want the old behavior back. - cleans up some old code closes #3802 closes #1515 closes #1751
* autofixing some missed copsLamont Granquist2016-02-052-6/+6
| | | | second round of autofixing for some reason...
* autofixing whitespace copsLamont Granquist2016-02-056-30/+29
| | | | | | | | | | | | | | | | | | | | | | 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
* Merge pull request #4481 from chef/jdm/fips-58Jay Mundrawala2016-02-031-0/+6
|\ | | | | Allow use of command line fips switch for knife
| * Allow use of command line fips switch for knifeJay Mundrawala2016-01-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | This somewhat worked before. However, it was just for knife bootstrap. It also didn't support --no-fips in the case where it was in your knife.rb and you decided that you didn't want to use fips for that one call. The assumption here is fips mode you run knife with is the fips mode the node will get. This has the nice property that validatorless bootstraps will talk to the chef server in fips mode if the node is requested to be in fips mode.
* | Some more author domain stragglers.Noah Kantrowitz2016-02-023-4/+4
| |
* | Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-023-3/+3
| | | | | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* | Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | | | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* | Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-026-7/+7
|/ | | 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"
* Allow chef-client --fipsJay Mundrawala2016-01-251-0/+7
|
* Do openssl initialization from applicationsJay Mundrawala2016-01-251-0/+1
| | | | | | | | | | | | | | | | | | | Some notes: * Add module overrides for fips We need to use the SHA1 module under OpenSSL because the openssl functions called by Digest::SHA1 cause openssl to crash the process. We use the Digest::MD5 over the OpenSSL::MD5 module because md5 is not allowed when in fips mode and causes the process to crash. While we work through these issues, we're going to allow it to pass by compiling the ruby md5 implementation. * Use OpenSSL::Digest::SHA256 instead of Digest::SHA256 Digest::SHA256 is broken in fips mode because it uses unapproved APIs. They cause the process to terminate.
* explicitly adding .bat to service executable called by service in case users ↵Matt Wrock2016-01-191-1/+1
| | | | remove .bat from PATHEXT
* Use double quotes by defaultThom May2016-01-146-95/+95
| | | | | | | 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.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-132-3/+3
| | | | chefstyle -a fixed 1044 occurrances
* Merge pull request #4373 from PatrickWalker/feature/issue-4268Thom May2016-01-121-1/+1
|\ | | | | Ensuring running Help returns an exit code of 0
| * Ensuring running Help returns an exit code of 0Patrick Walker2016-01-111-1/+1
| |
* | Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-2/+2
|/ | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* Moving the proxy export to environment varibles into Chef::Configtyler-ball2015-12-091-1/+1
|
* Allow named_run_list to be loaded from configDonald Guy2015-11-111-2/+1
| | | | | nil default in application/client.rb shadowed any value from config when executing chef-client (but not chef-shell -z) default in config is set to nil at https://github.com/chef/chef/blob/b0dbe243d469cc36477ba8102b74a8456b6f276d/chef-config/lib/chef-config/config.rb#L363, so otherwise this change is a no-op
* fix log location resolution in windows serviceMatt Wrock2015-11-091-7/+7
|
* windows service uses log fileMatt Wrock2015-11-052-8/+18
| | | | location from config if none is given on commandline
* allow reboot by reboot resource with chef-applysawanoboly2015-10-241-0/+1
|
* add logger to windows service shelloutservice_loggerMatt Wrock2015-10-201-1/+5
|
* Fix chef-apply usage bannerpwelch2015-10-171-1/+1
| | | | | | | | | The chef-apply option flags should trail the recipe or recipe text that is being applied. This updates the chef-apply banner to show the correct usage. Fixes #2372
* Merge pull request #4034 from chef/lcg/ruby-profilingLamont Granquist2015-10-133-2/+20
|\ | | | | add optional ruby-profiling with --profile-ruby
| * fix PR feedbacklcg/ruby-profilingLamont Granquist2015-10-132-2/+2
| |
| * make description of option scarierLamont Granquist2015-10-061-1/+1
| |
| * add optional ruby-profiling with --profile-rubyLamont Granquist2015-10-053-2/+20
| | | | | | | | dumps a large call graph into /var/chef/cache/graph_profile.out
* | Windows cli tools should have color true by defaultadamedx/windows-color-defaultsAdam Edwards2015-10-063-5/+5
|/
* Configure named run list via command line or config filedanielsdeleo2015-09-211-0/+6
|
* Merge pull request #3687 from chef/mh/formatter_chef_applyThom May2015-08-131-0/+18
|\ | | | | Add formatter and force-logger/formatter options to chef-apply
| * Add formatter and force-logger/formatter options to chef-applymh/formatter_chef_applyMark Harrison2015-07-201-0/+18
| | | | | | | | | | | | | | This change simply copies the formatter, force-logger and force-formatter options across from chef-client/chef-solo to chef-apply. The options are honored without further changes, and this allows you to force doc formatting output with chef-apply when the output isn't a terminal.
* | Merge pull request #3652 from chef/alexpop/fix_audit_mode_explanationThom May2015-08-131-3/+3
|\ \ | | | | | | fix explanation for configuring audit mode in client.rb
| * | fix explanation for configuring audit mode in client.rbalexpop/fix_audit_mode_explanationAlex Pop2015-07-091-3/+3
| | |
* | | Add ability to specify dependencies in chef-service-manager.Kartik Null Cating-Subramanian2015-07-241-7/+9
| | |
* | | Make service manager tests pass.Kartik Null Cating-Subramanian2015-07-201-1/+1
| | |
* | | Add flag to windows_service_manager to delay start.Kartik Null Cating-Subramanian2015-07-201-12/+17
|/ /
* | fix typoDeWaRs12062015-06-291-1/+0
| |
* | fix solo_spec according previous changeEmmanuel Iturbide2015-06-291-2/+2
| |
* | Use Mixlib::Shellout instead of Chef::Mixin::CommandDeWaRs12062015-06-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using C:\Users\Administrator>chef-solo -i 30 -s 5 -c C:/monsoon/solo.rb -j http://foo-bar/get-run -r http://foo-bar.com/cookbooks.tar.gz failled with error : [2015-06-25T15:01:52+02:00] DEBUG: ---- End output of tar zxvf C:/chef/recipes.t gz -C C:/chef ---- C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:140:in `block in ou tput_of_command': undefined method `exitstatus' for nil:NilClass (NoMethodError) from C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:122:in `chdir' from C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:122:in `output_of_command' from C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:101:in `run_command_and_return_stdout_stderr' from C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:79:in `run_command' from C:/opscode/chef/embedded/apps/chef/lib/chef/application/solo.rb:217 :in `reconfigure' from C:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:58:in `r un' from C:/opscode/chef/embedded/apps/chef/bin/chef-solo:25:in `<top (requi red)>' from C:/opscode/chef/bin/chef-solo:63:in `load' from C:/opscode/chef/bin/chef-solo:63:in `<main>' using Mixlib::ShellOut instead of Chef::Mixin::Command solved the issue