lib/berkshelf/locations/chef_api_location.rb in berkshelf-1.0.0.rc2 vs lib/berkshelf/locations/chef_api_location.rb in berkshelf-1.0.0.rc3

- old
+ new

@@ -54,23 +54,9 @@ raise InvalidChefAPILocation, "'#{uri}' is not a valid Chef API URI." end true end - - # Retrieves the organization of a Chef API URI. If the URI does not contain an - # organization then nil will be returned. - # - # @param [String] uri - # - # @raise [InvalidChefAPILocation] - # - # @return [String, nil] - def extract_organization(uri) - validate_uri!(uri) - - URI(uri).path.split('organizations/')[1] - end end include Location set_location_key :chef_api