Class: Radiosonde2terraform::Resolver
- Inherits:
-
Object
- Object
- Radiosonde2terraform::Resolver
- Defined in:
- lib/radiosonde2terraform/resolver.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options:) ⇒ Resolver
constructor
A new instance of Resolver.
-
#to_tf_conf(filepath) ⇒ String
The generated .tf file.
Constructor Details
#initialize(options:) ⇒ Resolver
Returns a new instance of Resolver.
8 9 10 |
# File 'lib/radiosonde2terraform/resolver.rb', line 8 def initialize(options:) = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/radiosonde2terraform/resolver.rb', line 11 def end |
Instance Method Details
#to_tf_conf(filepath) ⇒ String
Returns the generated .tf file.
15 16 17 18 |
# File 'lib/radiosonde2terraform/resolver.rb', line 15 def to_tf_conf(filepath) alarms = parse_conf(filepath) ERB.new(cloudwatch_alarm_template, trim_mode: '-').result(binding) end |