lib/wire/commands/verify_command_handler.rb
# runs verification for appgroups
# Returns
# - [Bool] true if appgroup setup is ok
runs verification for appgroups
Returns
[Bool] true if appgroup setup is ok
runs verification for appgroups Returns [ Bool ] true if appgroup setup is ok
def handle_appgroup(_zone_name, appgroup_name, appgroup_entry, target_dir)
      controller_entry = appgroup_entry[:controller]
      if controller_entry[:type] == 'fig'
        fig_path = File.join(File.expand_path(target_dir), controller_entry[:file])
        resource = Wire::Resource::ResourceFactory
          .instance.create(:figadapter, "#{appgroup_name}", fig_path)
        return default_handle_resource(resource, :appgroup,
                                       "Fig Appgroup \'#{appgroup_name}\'")
      end
      $log.error "Appgroup not handled, unknown controller type #{controller_entry[:type]}"
      false
    end
def handle_appgroup ( _zone_name , appgroup_name , appgroup_entry , target_dir ) controller_entry = appgroup_entry [ :controller ] if controller_entry [ :type ] == 'fig' fig_path = File . join ( File . expand_path ( target_dir ) , controller_entry [ :file ] ) resource = Wire :: Resource :: ResourceFactory . instance . create ( :figadapter , "#{appgroup_name}" , fig_path ) return default_handle_resource ( resource , :appgroup , "Fig Appgroup \'#{appgroup_name}\'" ) end $log . error "Appgroup not handled, unknown controller type #{controller_entry[:type]}" false end
runs verification for appgroups
Returns
 [Bool] true if appgroup setup is ok
runs verification for appgroups Returns [ Bool ] true if appgroup setup is ok
# get path
_zone_name
<not_specific>
appgroup_name
<not_specific>
appgroup_entry
<not_specific>
target_dir
<not_specific>