mirror of
https://github.com/inspec/inspec
synced 2024-12-25 12:33:25 +00:00
14 lines
300 B
Ruby
14 lines
300 B
Ruby
|
|
||
|
require 'azure_mgmt_resources'
|
||
|
|
||
|
class ResourceGroups
|
||
|
def initialize(azure)
|
||
|
@client = Azure::ARM::Resources::ResourceManagementClient.new(azure.connection)
|
||
|
@client.subscription_id = azure.subscription_id
|
||
|
end
|
||
|
|
||
|
def exists(name)
|
||
|
@client.resource_groups.check_existence(name)
|
||
|
end
|
||
|
end
|