Class: TerraformConfig::Provider
- Defined in:
- lib/core/terraform_config/provider.rb
Constant Summary
Constants included from Dsl
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name:, **options) ⇒ Provider
constructor
A new instance of Provider.
- #to_tf ⇒ Object
Methods inherited from Base
#importable?, #locals, #reference
Methods included from Dsl
Constructor Details
#initialize(name:, **options) ⇒ Provider
Returns a new instance of Provider.
7 8 9 10 11 12 |
# File 'lib/core/terraform_config/provider.rb', line 7 def initialize(name:, **) super() @name = name @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/core/terraform_config/provider.rb', line 5 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/core/terraform_config/provider.rb', line 5 def @options end |
Instance Method Details
#to_tf ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/core/terraform_config/provider.rb', line 14 def to_tf block :provider, name do .each do |option, value| argument option, value end end end |