Class: TerraformConfig::RequiredProvider
- Defined in:
- lib/core/terraform_config/required_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.
-
#org ⇒ Object
readonly
Returns the value of attribute org.
Instance Method Summary collapse
-
#initialize(name:, org:, **options) ⇒ RequiredProvider
constructor
A new instance of RequiredProvider.
- #to_tf ⇒ Object
Methods inherited from Base
#importable?, #locals, #reference
Methods included from Dsl
Constructor Details
#initialize(name:, org:, **options) ⇒ RequiredProvider
Returns a new instance of RequiredProvider.
7 8 9 10 11 12 13 |
# File 'lib/core/terraform_config/required_provider.rb', line 7 def initialize(name:, org:, **) super() @name = name @org = org @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/core/terraform_config/required_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/required_provider.rb', line 5 def @options end |
#org ⇒ Object (readonly)
Returns the value of attribute org.
5 6 7 |
# File 'lib/core/terraform_config/required_provider.rb', line 5 def org @org end |
Instance Method Details
#to_tf ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/core/terraform_config/required_provider.rb', line 15 def to_tf block :terraform do block :required_providers do argument name, end end end |