diff options
author | Ho-Sheng Hsiao <hosh@opscode.com> | 2013-02-28 15:51:25 -0800 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-06-07 13:12:27 -0700 |
commit | fac10f8731aef1c3a8e29b9b59eea66ff8ba615a (patch) | |
tree | c492d2b5aeea41217f9c3bd940d4badd37aec305 /lib/chef/chef_fs/data_handler/data_handler_base.rb | |
parent | 1bef87b28bbddf2b838a2fa6a081fab0c2140386 (diff) | |
download | chef-fac10f8731aef1c3a8e29b9b59eea66ff8ba615a.tar.gz |
[CORE] Bypass chef_object inflation and normalize raw requests instead
- Factored out api_request() from knife_essentials to a class method
available everywhere
- Added #raw_request to handle GET requests without chef object inflation
- Added RestListEntry#chef_hash to pull a raw_request()
- RestListEntry#read will now normalize from #chef_hash
- Added RestListDir#chef_collection to make it easier to customize and test
- Updated unit tests to mock #chef_hash and #chef_collection instead of using a
@rest mock, where appropriate
Diffstat (limited to 'lib/chef/chef_fs/data_handler/data_handler_base.rb')
-rw-r--r-- | lib/chef/chef_fs/data_handler/data_handler_base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/data_handler/data_handler_base.rb b/lib/chef/chef_fs/data_handler/data_handler_base.rb index 0d007cf24c..3fe539b29f 100644 --- a/lib/chef/chef_fs/data_handler/data_handler_base.rb +++ b/lib/chef/chef_fs/data_handler/data_handler_base.rb @@ -106,7 +106,8 @@ class Chef end result end - end + + end # class DataHandlerBase end end end |