lib/wire/commands/verify_command.rb
# Given a +zone_name+ and an array of +appgroups+ entries
# this methods verifies if these appgroups are up and running
# It also checks container's network attachments
Given a +zone_name+ and an array of +appgroups+ entries
this methods verifies if these appgroups are up and running
It also checks container's network attachments
Given a + zone_name + and an array of + appgroups + entries this methods verifies if these appgroups are up and running It also checks container ' s network attachments
def verify_appgroups(appgroups, zone_name)
      b_verify_ok = true
      appgroups.each do |appgroup_name, appgroup_data|
        $log.debug("Verifying appgroup \'#{appgroup_name}\'")
        if @handler.handle_appgroup(zone_name, appgroup_name,
                                    appgroup_data, @project.target_dir) == false
          appgroup_data.store :status, :failed
          b_verify_ok = false
          mark("Appgroup \'#{appgroup_name}\' does not run correctly.",
               :appgroup, appgroup_name, appgroup_data)
        else
          appgroup_data.store :status, :ok
        end
        next unless b_verify_ok
        zone_networks = objects_in_zone('networks', zone_name)
        if @handler.handle_network_attachments(zone_name, zone_networks,
                                               appgroup_name, appgroup_data,
                                               @project.target_dir) == false
          appgroup_data.store :status, :failed
          b_verify_ok = false
          mark("Appgroup \'#{appgroup_name}\' has missing network attachments",
               :appgroup, appgroup_name, appgroup_data)
        else
          appgroup_data.store :status, :ok
        end
      end
      b_verify_ok
    end
def verify_appgroups ( appgroups , zone_name ) b_verify_ok = true appgroups . each do | appgroup_name , appgroup_data | $log . debug ( "Verifying appgroup \'#{appgroup_name}\'" ) if @handler . handle_appgroup ( zone_name , appgroup_name , appgroup_data , @project . target_dir ) == false appgroup_data . store :status , :failed b_verify_ok = false mark ( "Appgroup \'#{appgroup_name}\' does not run correctly." , :appgroup , appgroup_name , appgroup_data ) else appgroup_data . store :status , :ok end next unless b_verify_ok zone_networks = objects_in_zone ( 'networks' , zone_name ) if @handler . handle_network_attachments ( zone_name , zone_networks , appgroup_name , appgroup_data , @project . target_dir ) == false appgroup_data . store :status , :failed b_verify_ok = false mark ( "Appgroup \'#{appgroup_name}\' has missing network attachments" , :appgroup , appgroup_name , appgroup_data ) else appgroup_data . store :status , :ok end end b_verify_ok end
Given a +zone_name+ and an array of +appgroups+ entries
this methods verifies if these appgroups are up and running
It also checks container's network attachments
Given a + zone_name + and an array of + appgroups + entries this methods verifies if these appgroups are up and running It also checks container ' s network attachments
appgroups
<not_specific>
zone_name
<not_specific>