summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs
Commit message (Collapse)AuthorAgeFilesLines
* Add make_child_entry in ChefFS CookbookSubdirMaxime Brugidou2015-11-251-0/+5
| | | | Following a517fa8a we can't call `child` on cookbook subdirs.
* Use repo_mode to decide whether to treat /users asJohn Keiser2015-11-181-7/+13
| | | | a list of users or as invites
* Properly rescue ENOENT on delete and send DataNotFoundErrorJohn Keiser2015-11-181-6/+10
| | | | so that callers can 404 when deleting a nonexistent path
* Fix /acls/environments and /acls/environments/x.jsonJohn Keiser2015-11-181-1/+14
|
* Support POST /organizations/NAME/association_requests and POST ↵John Keiser2015-11-181-0/+160
| | | | /organizations/NAME/users
* 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-233-4/+7
|
* 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.
* Use windows paths without case-sensitivity.ksubrama/path_spaceKartik Null Cating-Subramanian2015-06-304-80/+126
| | | | | | Fixes #1684 Add tests for path manipulation in chef-fs. Clean up the handling of paths in chef-fs.
* 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
|
* Ensure cookbook_manifest is required where it's useddanielsdeleo2015-02-111-0/+1
|
* Temporarily implement deprecation warnings as errorsdanielsdeleo2015-02-111-1/+1
| | | | | This is an intermediate step where we're cleaning up all internal code to convert cookbook version objects to JSON in the new way.
* Improve policy ChefFS supportpolicyfile-native-api-supportdanielsdeleo2015-01-275-5/+56
|
* Add ChefFS data handling for policiesdanielsdeleo2015-01-272-0/+14
|
* Add policy support to ChefFS configurationdanielsdeleo2015-01-271-4/+25
|
* Merge pull request #2166 from charlesjohnson/UserDataHandlerLamont Granquist2015-01-251-0/+1
|\ | | | | Add display_name handling to Chef::ChefFS::DataHandler::UserDataHandler
| * Add display_name handling to Chef::ChefFS::DataHandler::UserDataHandlerCharles Johnson2014-10-041-0/+1
| | | | | | | | Add support for user full name as display_name to Chef::ChefFS::DataHandler::UserDataHandler
* | Fix #2596: parse instead of from_jsonjk/2596John Keiser2014-12-101-1/+1
| |
* | Merge pull request #2073 from opscode/ryan/group_post-mastertball/restore-050d148Serdar Sutay2014-11-191-0/+4
|\ \ | | | | | | Populate the actors when creating groups
| * | Populate the actors when creating groupsRyan Cragun2014-11-191-0/+4
| |/
* | add empty? method for cheffs base dir classcuriositycasualty2014-10-281-0/+5
| | | | | | | | | | | | | | | | add spec tests remove commented pry binding delegate to Array#empty? instead
* | Found some JSON pretty printing statements I missedtyler-ball2014-10-072-2/+2
| |
* | 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-094-22/+148
|
* Make Chef::Config.versioned_cookbooks configurable by consumersjk/versioned_cookbooks_configJohn Keiser2014-09-057-15/+22
| | | | 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-0516-22/+138
|
* Add org.json, members.json, invitations.json for full org downloadJohn Keiser2014-09-0513-23/+288
| | | | 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)
* Clean up acl data handler, add username to user handler for cheffishjk/data_handler_cleanupJohn Keiser2014-08-272-2/+3
|
* Warn on using 'everything' for knife download on a hosted setup PR #1913jmink2014-08-252-3/+12
|
* Use thread-safe OpenSSL::Digest instead of DigestGrzesiek Kolodziejczyk2014-08-201-2/+2
|
* remove JSON gem usageLamont Granquist2014-08-116-12/+12
| | | | | | | | | should fully convert to using ffi-yajl there are still issues with JSON gem monkeypatching interacting with chef-zero and the spec tests so we keep the requires here for the json gem and the ffi_yajl/json_gem here. when ohai and chef-zero are fixed, we an just require ffi_yajl.
* Reverse the error wording in Chef::ChefFS::FileSystem#copy_entriesJeremiah Snapp2014-08-011-1/+1
|
* Remove unused argument to CookbookUploader#initializedanielsdeleo2014-07-301-2/+2
|
* [chef_fs/file_system] Ignore missing entry at destination when purgingssd/purge-ignore-missing-on-purgeSteven Danna2014-06-181-2/+6
| | | | | | | | | If a user attempts to call #copy_to with a path that does not exist at either the source or destination and :purge set to true, we currently fail with an error trying to delete the non-existent entry at the destination. This patch ignores that failure.
* Do not wait for clean exit when Exception is thrownjk/exiterrorJohn Keiser2014-06-021-4/+6
|
* Fix tests on 1.8.7John Keiser2014-05-192-15/+17
|
* Do not provide "lazy" unless it is available (Ruby 2.0+)John Keiser2014-05-191-19/+21
|
* Prevent parallel first/take/drop from processing things it shouldn'tJohn Keiser2014-05-191-6/+65
|