summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs/file_system
Commit message (Collapse)AuthorAgeFilesLines
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-184-4/+4
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Revert "another chefstyle catchup + pull master"Lamont Granquist2016-01-184-9/+9
| | | | This reverts commit ccf46bf3055b2a1c06499ec104f3d74c26643395.
* another chefstyle catchup + pull masterLamont Granquist2016-01-184-9/+9
| | | | | | | bunch of merges over the weekend need re-fixing again. seems like pointing at master of chefstyle is probably a good idea to start making people fix their code before merging.
* Make local cookbook artifacts load correctlyJohn Keiser2016-01-153-1/+77
|
* Treat repository policies dir as one level (/policies/name-revision.json)John Keiser2016-01-151-1/+1
|
* Add policies dir that allows directory childrenJohn Keiser2016-01-152-4/+43
|
* Fix unused variables and commentsjk/cookbook-artifactsJohn Keiser2016-01-151-2/+0
|
* Make upload cookbook_artifacts workJohn Keiser2016-01-153-2/+9
|
* Get download of cookbook_artifacts workingJohn Keiser2016-01-151-1/+0
|
* Add server cookbook artifacts and list_specJohn Keiser2016-01-157-11/+157
|
* Add local cookbook_artifactsJohn Keiser2016-01-151-1/+1
|
* Use double quotes by defaultThom May2016-01-1449-217/+217
| | | | | | | 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.
* Merge pull request #4398 from chef/lcg/trailing_commaThom May2016-01-142-3/+3
|\ | | | | autocorrecting Style/TrailingComma
| * autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-132-3/+3
| | | | | | | | chefstyle -a fixed 1044 occurrances
* | Split repository versioned and unversioned cookbooksjk/chef-fs-cookbook-refactorJohn Keiser2016-01-134-18/+89
| |
* | Split versioned cookbook dir from unversionedJohn Keiser2016-01-135-25/+77
| |
* | Split versioned and unversioned cookbooks into separate classesJohn Keiser2016-01-133-65/+106
|/
* Move server and repository fs objects to their own directoriesJohn Keiser2016-01-1362-2713/+2781
|
* Correct uses of fail to raisetm/fix_failThom May2016-01-131-1/+1
| | | | Style/SignalException - 3
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-26/+26
|
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-1/+1
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* If /policies and /policy_groups are not on this server version,John Keiser2015-12-152-2/+57
| | | | treat them like empty directories
* Add knife/ChefFS support for policyfiles and policy_groups.John Keiser2015-12-1527-122/+448
|
* Add make_child_entry in ChefFS CookbookSubdirMaxime Brugidou2015-11-251-0/+5
| | | | Following a517fa8a we can't call `child` on cookbook subdirs.
* Properly rescue ENOENT on delete and send DataNotFoundErrorJohn Keiser2015-11-181-6/+10
| | | | so that callers can 404 when deleting a nonexistent path
* Allow downloading of root_files in a chef repositoryssd/download-root-filesSteven Danna2015-10-231-1/+1
| | | | | | | A FileSystemEntry with a nil parent is a "root directory" and thus should exists so long as its filesystem path exists. This was preventing the download of files such as invitation.json whose parent directory is a root directory.
* Re-upgrade chef-zero to latestjk/latest-chef-zeroJohn Keiser2015-09-232-3/+4
|
* Refactor "children" to use make_child_entry everywhere, simplifyjk/fs_childrenJohn Keiser2015-08-0717-87/+60
|
* Don't return nil from make_child_entryJohn Keiser2015-08-071-2/+2
|
* Fix multiple directory warning to print actual directoryJohn Keiser2015-08-071-1/+1
|
* Don't say a file system entry exists unless it can have the givenJohn Keiser2015-08-071-1/+1
| | | | child.
* Rename make_child / _make_child_entry -> make_child_entry for consistencyJohn Keiser2015-08-0714-44/+31
|
* Speed up file system access by not listing children on everyJohn Keiser2015-08-072-1/+20
| | | | | | | | | child(name) access. Also removes an intermittent warning when first downloading large numbers of cookbooks where sometimes a cookbook directory has been created but its children have not: when you run child('other_cookbook') it lists 'cookbooks'.children and notices the empty directory. Annoying, and probably affects knife-ec-backup.
* Allow cookbooks_dir to use chef_rest instead of rest for now.tylercloke2015-07-062-10/+2
|
* Cleanup.tylercloke2015-07-061-1/+1
|
* Default Chef::ChefFS::...::ChefServerRootDir.rest to use API V0 and ↵tylercloke2015-07-062-3/+11
| | | | | | | | deprecated chef_rest. Unfortunately, chef_rest was using the now outdated Chef::HTTP so I could not default it to API V0. It was also being used anywhere except Chef::ChefFS::FileSystem::CookbooksDir, which can just as easially use rest instead of chef_rest as they provide the same interface. That update has been made.
* Missing require (require what you use).jk/missing_requireJohn Keiser2015-06-261-0/+1
|
* fix Lint/UnderscorePrefixedVariableNameLamont Granquist2015-02-231-3/+3
|
* fix Lint/Loop styleLamont Granquist2015-02-181-2/+3
|
* Improve policy ChefFS supportpolicyfile-native-api-supportdanielsdeleo2015-01-272-3/+42
|
* Add ChefFS data handling for policiesdanielsdeleo2015-01-271-0/+3
|
* Fix #2596: parse instead of from_jsonjk/2596John Keiser2014-12-101-1/+1
|
* add empty? method for cheffs base dir classcuriositycasualty2014-10-281-0/+5
| | | | | | | | add spec tests remove commented pry binding delegate to Array#empty? instead
* Trying to eradicate all traces of the JSON gem from Cheftyler-ball2014-10-073-3/+6
|
* Add ChefFS rdoc, format existing ChefFS rdoc correctlyjk/docJohn Keiser2014-09-092-21/+28
|
* Make Chef::Config.versioned_cookbooks configurable by consumersjk/versioned_cookbooks_configJohn Keiser2014-09-055-8/+15
| | | | without having to modify Chef::Config itself
* Fix crash when repo root does not existJohn Keiser2014-09-051-7/+10
|
* Add many comments to DataHandler and FileSystem classesJohn Keiser2014-09-054-8/+52
|
* Add org.json, members.json, invitations.json for full org downloadJohn Keiser2014-09-057-21/+221
| | | | and upload support
* Switch back to ChefZero::RSpec version 3jk/rspec_zero_3John Keiser2014-08-291-1/+1
| | | | And add some Enterprise tests (fix an acl delete issue)