lib/wire/commands/down_command_handler.rb
# take the appgroups' controller and directs methods to
# it. First checks if appgroup is down. If so, ok. If not, take it down
# and ensure that it's down
# Params:
# +zone_name+:: Name of zone
# +appgroup_name+:: Name of Appgroup
# +appgroup_entry+:: Appgroup data from model
# +target_dir+:: Target directory (where fig file is located)
take the appgroups' controller and directs methods to
it. First checks if appgroup is down. If so, ok.
take the appgroups ' controller and directs methods to it . First checks if appgroup is down . If so ok .
def handle_appgroup(zone_name, appgroup_name, appgroup_entry, target_dir)
      controller_entry = appgroup_entry[:controller]
      if controller_entry[:type] == 'fig'
        return handle_appgroup__fig(zone_name, appgroup_name, appgroup_entry, target_dir)
      end
      $log.error "Appgroup not handled for zone #{zone_name}, " \
      "unknown controller type #{controller_entry[:type]}"
      false
    rescue => e
      $log.error "processing appgroup: #{e}"
    end
def handle_appgroup ( zone_name , appgroup_name , appgroup_entry , target_dir ) controller_entry = appgroup_entry [ :controller ] if controller_entry [ :type ] == 'fig' return handle_appgroup__fig ( zone_name , appgroup_name , appgroup_entry , target_dir ) end $log . error "Appgroup not handled for zone #{zone_name}, " "unknown controller type #{controller_entry[:type]}" false rescue => e $log . error "processing appgroup: #{e}" end
take the appgroups' controller and directs methods to
it.
take the appgroups ' controller and directs methods to it .
# get path
zone_name
<not_specific>
appgroup_name
<not_specific>
appgroup_entry
<not_specific>
target_dir
<not_specific>