Class: Ironfan::Dsl::Ec2::ElasticLoadBalancer::HealthCheck

Inherits:
Ironfan::Dsl show all
Defined in:
lib/ironfan/dsl/ec2.rb

Instance Attribute Summary

Attributes included from Gorillib::Resolution

#underlay

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

ui, #ui

Instance Method Details

#targetObject


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_fogObject


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