chef_api 0.2.0

Client for the Chef Server API
1
2
3
4
5
6
7
8
9
10
11
import!();
requests!(PolicyGroupsQuery, policy_groups);

impl<'c> PolicyGroupsQuery<'c> {
    path!(policy_group);

    pub fn policy(&mut self, policy: &str) -> &mut Self {
        self.path = add_path_element(self.path.clone(), &format!("policies/{}", policy));
        self
    }
}