class Chef::Resource::ChefContainer
Public Instance Methods
data_handler()
click to toggle source
# File lib/chef/resource/chef_container.rb, line 43 def data_handler Chef::ChefFS::DataHandler::ContainerDataHandler.new end
keys()
click to toggle source
# File lib/chef/resource/chef_container.rb, line 47 def keys { "containername" => :chef_container_name, "containerpath" => :chef_container_name } end
load_current_resource()
click to toggle source
# File lib/chef/resource/chef_container.rb, line 29 def load_current_resource @current_exists = rest.get("containers/#{new_resource.chef_container_name}") rescue Net::HTTPClientException => e if e.response.code == "404" @current_exists = false else raise end end
new_json()
click to toggle source
# File lib/chef/resource/chef_container.rb, line 39 def new_json {} end