summaryrefslogtreecommitdiff
path: root/lib/chef
Commit message (Collapse)AuthorAgeFilesLines
* Remove access mask to RegDeleteKeyExW, it's not usefulClaire McQuin2015-09-032-4/+2
|
* Monkey-patch Win32::Registry::API::DeleteKey for Win32::Registry#delete_keyClaire McQuin2015-09-032-9/+15
|
* Monkey-patch Win32::Registry::API::DeleteValue for Win32::Registry#delete_value.Claire McQuin2015-09-033-0/+33
|
* review fixesLamont Granquist2015-09-021-9/+7
| | | | | - convert to Set - use #override?
* refactor remote_directory providerLamont Granquist2015-09-022-102/+244
| | | | | | | | | | | | | | | | | | | - Huge speed and memory perf boost. In the prior code if you were copying 10 dotfiles to a home directory with a million files in it, would slurp all million files into a ruby Set object even if you were not ultimately going to purge the unmanaged files. This code inverts the logic and tracks managed files and then iterates through the filesystem without slurping a list into memory. - Only do file purging logic if purging is set. - Fixes mutation of new_resource.overwrite. - Fixes mutation of new_resource.rights (subtle). - Adds helper delegators to the new_resource properties. - Deprecates (instead of removes) now-unused methods. - Renamed a method (with deprecated alias preserved) for consistency. - Adds YARD for everything. - Changes protected to private because protected is largely useless in ruby. - Removes whyrun_supported? because the superclass sets that.
* Merge pull request #3841 from chef/jdm/now-winds-prKartik Null Cating-Subramanian2015-09-022-33/+0
|\ | | | | Remove dependency on windows-pr
| * Remove dependency on windows-prjdm/now-winds-prjdm/now-windows-prJay Mundrawala2015-08-281-32/+0
| |
| * Remove unused instance variableJay Mundrawala2015-08-281-1/+0
| |
* | fix locking/unlocking users on SmartOSDave Eddy2015-09-021-4/+32
| |
* | Merge pull request #3821 from joelhandwell/elapsed_timeThom May2015-09-021-2/+14
|\ \ | | | | | | Human friendly elapsed time in log
| * | Remove Timecop dependencyJoel Handwell2015-09-021-1/+1
| | |
| * | Keep elapsed_time and add pretty_elapsed_timeJoel Handwell2015-09-021-3/+7
| | |
| * | Add unit tests for elapsed_timeJoel Handwell2015-09-021-1/+1
| | |
| * | Human friendly elapsed time in logJoel Handwell2015-09-021-3/+11
| | |
* | | Merge pull request #3806 from gh2k/subversion-shelloutThom May2015-09-022-7/+18
|\ \ \ | | | | | | | | Replace output_of_command with shell_out! in subversion provider
| * | | Replace output_of_command with shell_out! in subversion providerSimon Detheridge2015-08-242-7/+18
| | | | | | | | | | | | | | | | output_of_command doesn't work properly on Windows (see chef/chef#1533)
* | | | Merge pull request #3510 from ckaushik/issue_2513Thom May2015-09-021-0/+1
|\ \ \ \ | | | | | | | | | | Fixing Issue #2513 - the broken render of nested partial templates
| * | | | Fixing Issue #2513 - the broken render of nested partial templates with ↵Kaushik C2015-07-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variables Authors: Kaushik C <kaushik.chand@gmail.com>, Sam Dunne <sam@sam-dunne.com>
* | | | | Merge pull request #3190 from swalberg/tag_nodes_on_bootstrapThom May2015-09-023-2/+14
|\ \ \ \ \ | | | | | | | | | | | | Allow tags to be set on a node during bootstrap
| * | | | | If tags are present, add to the first-boot.jsonSean Walberg2015-04-091-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to @coderanger from IRC for pointing me in the right direction. I also snuck in a whitespace fix
| * | | | | Allow tags to be set on a node during bootstrapSean Walberg2015-04-052-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I can set attributes, environment, and run_list, but why not tags? Some of our recipes are driven off of tags, such as for sudo access or membership in a load balancing pool. If this patch is accepted then I will add the corresponding feature to knife-vsphere. This patch only works with the new vault method, not the validator key method. If someone has some pointers on where to add it in the validator method I'd be happy to amend.
* | | | | | Merge pull request #3172 from BackSlasher/deploy-shell-outThom May2015-09-021-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | Migrated deploy resource to use shell_out instead of run_command
| * | | | | | Migrated deploy resource to use shell_out instead of run_commandNitz2015-08-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Should help with troubleshooting failed migrations
* | | | | | | Merge pull request #3027 from ↵Thom May2015-09-021-1/+12
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | Nordstrom/warn_on_knife_node_runlist_remove_nochange Add warnings to 'knife node run list remove ...'
| * | | | | | Add warnings to 'knife node run list remove ...' when the item to be removed ↵James FitzGibbon2015-03-041-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | doesn't exist
* | | | | | | Make file verification deprecation print the proper source locjk/dedup-messagesJohn Keiser2015-09-011-1/+2
| | | | | | |
* | | | | | | Send a string, not an arrayJohn Keiser2015-09-011-1/+4
| | | | | | |
* | | | | | | Fix dispatching events to methods with arity < argsJohn Keiser2015-09-011-1/+1
| | | | | | |
* | | | | | | Rename log.deprecation to log_deprecationJohn Keiser2015-09-0117-50/+57
| | | | | | |
* | | | | | | Pass the buck on deprecations from Chef 12 -> 13John Keiser2015-09-016-8/+6
| | | | | | |
* | | | | | | Make Dispatcher metaprogramming more straightforwardJohn Keiser2015-09-012-19/+19
| | | | | | |
* | | | | | | Pass deprecations through formatter instead of logsJohn Keiser2015-09-0122-50/+111
| | | | | | |
* | | | | | | Refactor Chef::Mixin::WideString to remove implicit Windows dependency.mcquin/refactor-wstringClaire McQuin2015-09-0114-87/+96
| | | | | | |
* | | | | | | Patch Win32::Registry#write on Ruby 2.1, resolves encoding errorsmcquin/monkeypatch-win32-registry-writeClaire McQuin2015-08-311-0/+27
| | | | | | |
* | | | | | | Fix constantSalim Alam2015-08-311-1/+1
| | | | | | |
* | | | | | | Prep for Registry FFI; Convert RegDeleteKeyEx to FFIsalam/registry-ffichefsalim2015-08-302-2/+57
| |_|_|_|_|/ |/| | | | |
* | | | | | Remove unused thingsJay Mundrawala2015-08-281-53/+1
| | | | | |
* | | | | | FFI NetUseAddJay Mundrawala2015-08-283-5/+37
| | | | | |
* | | | | | FFI NetUseGetInfoJay Mundrawala2015-08-283-11/+50
| | | | | |
* | | | | | Create StructHelperJay Mundrawala2015-08-281-38/+42
| | | | | |
* | | | | | Use FFI for NetUseDelJay Mundrawala2015-08-283-4/+42
| | | | | |
* | | | | | Rename NetUser -> NetJay Mundrawala2015-08-281-1/+2
| | | | | |
* | | | | | Make win32/api/net.rb look nicerjdm/net-api-styleJay Mundrawala2015-08-281-11/+28
| | | | | |
* | | | | | speed improvement for remote_directory() resourceIgor Shpakov2015-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | problem: doing ls(path) for a very large directory with > 1.8mil files takes upwards of 10 minutes. solution: change filtering stage from files.reject! to files.reject files.reject! does in place filtering and it looks like it copies the whole array for every deletion. in my example it filtered out 300k rows, so that's 300k array copies. switching to files.reject decreases the runtime of that function from 650seconds down to 6-7 seconds.
* | | | | | Stop using @instance_variableJay Mundrawala2015-08-271-5/+9
| | | | | |
* | | | | | Remove unused thingsJay Mundrawala2015-08-271-5/+0
| | | | | |
* | | | | | Use ffi for GetVolumeNameForVolumeMountPointJay Mundrawala2015-08-273-5/+18
| | | | | |
* | | | | | Convert SetVolumeMountPoint to use ffiJay Mundrawala2015-08-273-2/+17
| | | | | |
* | | | | | Rewrite DeleteVolumeMountPoint to use FFIJay Mundrawala2015-08-273-5/+21
| | | | | |
* | | | | | Merge pull request #3760 from chef/ksubrama/rake_taskKartik Null Cating-Subramanian2015-08-261-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | Refactor all the gem building logic into a custom rake task.