Method: Azure::CloudServiceManagement::CloudServiceManagementService#get_cloud_service

Defined in:
lib/azure/cloud_service_management/cloud_service_management_service.rb

#get_cloud_service(name) ⇒ Object

Public: Checks to see if the specified hosted service is available

Attributes

  • name - String. Cloud service name.

Returns: A boolean value indicating whether the cloud service exists. If true, the cloud service is available. If false, the cloud service does not exist.



299
300
301
# File 'lib/azure/cloud_service_management/cloud_service_management_service.rb', line 299

def get_cloud_service(name)
  list_cloud_services.select { |x| x.name.casecmp(name) == 0 }.first
end