Module: Chef::Mixin::RootRestv0
- Included in:
- Opc::OpcOrgDelete, Opc::OpcOrgList, Opc::OpcOrgShow, Opc::OpcUserCreate, Opc::OpcUserDelete, Opc::OpcUserEdit, Opc::OpcUserList, Opc::OpcUserPassword, Opc::OpcUserShow
- Defined in:
- lib/chef/mixin/root_rest.rb
Instance Method Summary collapse
Instance Method Details
#root_rest ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/chef/mixin/root_rest.rb', line 22 def root_rest # Use v0 API for now # Rather than upgrade all of this code to move to v1, the goal is to remove the # need for this plugin. See # https://github.com/chef/chef/issues/3517 @root_rest ||= Chef::ServerAPI.new(Chef::Config[:chef_server_root], { api_version: "0" }) end |