Class: Ironfan::Dsl::Ec2::ElasticLoadBalancer::HealthCheck
- Inherits:
-
Ironfan::Dsl
- Object
- Builder
- Ironfan::Dsl
- Ironfan::Dsl::Ec2::ElasticLoadBalancer::HealthCheck
- Defined in:
- lib/ironfan/dsl/ec2.rb
Instance Attribute Summary
Attributes included from Gorillib::Resolution
Instance Method Summary collapse
Methods inherited from Ironfan::Dsl
#_skip_fields, #skip_fields, #to_manifest
Methods included from Gorillib::Resolution
#deep_resolve, #merge_resolve, #merge_values, #read_resolved_attribute, #read_set_attribute, #read_set_or_underlay_attribute, #read_underlay_attribute, #resolve, #resolve!, #resolve_value
Methods included from CookbookRequirements
#_cookbook_reqs, #children, #cookbook_req, #cookbook_reqs, #join_req
Methods inherited from Builder
Instance Method Details
#target ⇒ Object
141 142 143 144 145 146 147 |
# File 'lib/ironfan/dsl/ec2.rb', line 141 def target if %w[ HTTP HTTPS ].include?(self.ping_protocol) "#{self.ping_protocol}:#{self.ping_port}#{self.ping_path}" else "#{self.ping_protocol}:#{self.ping_port}" end end |
#to_fog ⇒ Object
149 150 151 152 153 154 155 156 157 |
# File 'lib/ironfan/dsl/ec2.rb', line 149 def to_fog health_check = { 'HealthyThreshold' => healthy_threshold, 'Timeout' => timeout, 'UnhealthyThreshold' => unhealthy_threshold, 'Interval' => interval, 'Target' => target } end |