chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::ChefFS::FileSystem::ChefServer::RestListDir#children
Does GET /<api_path>, assumes the result is of the format:
{
"foo": "<api_path>/foo",
"bar": "<api_path>/bar",
}
Children are foo.json and bar.json in this case.Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/chef_fs/file_system/chef_server/rest_list_dir.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--ChefFS--FileSystem--ChefServer--RestListDir-children-for-pr
# Commit to gitgit add lib/chef/chef_fs/file_system/chef_server/rest_list_dir.rbgit commit -m "better docs for Chef::ChefFS::FileSystem::ChefServer::RestListDir#children"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--ChefFS--FileSystem--ChefServer--RestListDir-children-for-pr
hub pull-request
# Celebrate!