class Chef::TidyServer
Attributes
root_url[RW]
Public Class Methods
from_chef_server_url(url)
click to toggle source
# File lib/chef/tidy_server.rb, line 9 def self.from_chef_server_url(url) url = url.gsub(%r{/organizations/+[^/]+/*$}, "") Chef::Server.new(url) end
new(root_url)
click to toggle source
# File lib/chef/tidy_server.rb, line 5 def initialize(root_url) @root_url = root_url end