Chapter 09/circuit-oneops-1-master/components/cookbooks/f5-bigip/libraries/provider_ltm_virtual_server.rb
#
# Return data structure for rules for virtual server resource given
#   new_resource parameters
#
# @return [Array<Hash>]
#   data structure for rules based on new_resource
#
Return data structure for rules for virtual server resource given
new_resource parameters
Return data structure for rules for virtual server resource given new_resource parameters
def rules_datastructure
        cnt = 0
        new_resource.rules.map do |rule|
          cnt += 1
          { 'rule_name' => rule, 'priority' => cnt }
        end
      end
def rules_datastructure cnt = 0 new_resource . rules . map do | rule | cnt += 1 { 'rule_name' => rule , 'priority' => cnt } end end
Return data structure for rules for virtual server resource given
new_resource parameters
Return data structure for rules for virtual server resource given new_resource parameters
data structure for rules based on new_resource
data structure for rules based on new_resource
Array<Hash>