in lib/instance_agent/plugins/codedeploy/application_specification/range_info.rb [97:128]
def get_range
range = "s" + @low_sensitivity.to_s
if (@low_sensitivity != @high_sensitivity)
range = range + "-s" + @high_sensitivity.to_s
end
if !@categories.nil?
range = range + ":"
index = 0
while index < @categories.length
if (index != 0)
range = range + ","
end
low = @categories[index]
low_index = index
high = @categories[index]
index += 1
while (@categories[index] == low + (index - low_index))
high += 1
index += 1
end
if (low == high)
range = range + "c" + low.to_s
else
range = range + "c" + low.to_s + ".c" + high.to_s
end
end
end
range
end