class RP::EMR::InstanceGroup
Public Instance Methods
to_hash()
click to toggle source
# File lib/rp/emr/instance_group.rb, line 18 def to_hash { name: name, market: market, instance_role: instance_role, bid_price: bid_price.to_s, instance_type: instance_type, instance_count: instance_count, }.reject { |k,v| !v || (v.respond_to?(:empty?) && v.empty?) } end
Private Instance Methods
market()
click to toggle source
# File lib/rp/emr/instance_group.rb, line 31 def market bid_price ? 'SPOT' : @market end