Method: Inspec::Resources::AzureGenericResource#initialize

Defined in:
lib/resources/azure/azure_generic_resource.rb

#initialize(opts = {}) ⇒ AzureGenericResource

Returns a new instance of AzureGenericResource.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/resources/azure/azure_generic_resource.rb', line 18

def initialize(opts = {})
  warn "[DEPRECATED] use a specific azure resources instead of 'azure_generic_resource'. See https://github.com/inspec/inspec/issues/3131"

  # Call the parent class constructor
  super(opts)

  # Get the resource group
  resource_group

  # Get the resources
  resources

  # Create the tag methods
  create_tag_methods
end