Class: TerraformWrapper::Shared::Provider

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/terraform-wrapper/shared/provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

configure_logger_for, logger_for

Constructor Details

#initialize(options:) ⇒ Provider

Returns a new instance of Provider.



23
24
25
26
27
# File 'lib/terraform-wrapper/shared/provider.rb', line 23

def initialize(options:)
  logger.fatal("Provider platforms to prefetch hashs for must be an array!") unless options["platforms"].kind_of?(Array)

  @platforms = options["platforms"]
end

Instance Attribute Details

#platformsObject (readonly)

Returns the value of attribute platforms.



19
20
21
# File 'lib/terraform-wrapper/shared/provider.rb', line 19

def platforms
  @platforms
end