Sha256: 8fbeb0b5c0ca7ea61521d29e1b390fd2685a7b1077e69a2862431c2838676943

Contents?: true

Size: 1003 Bytes

Versions: 2

Compression:

Stored size: 1003 Bytes

Contents

package <%= base_package%>.shell.controller {
	import <%= base_package%>.shell.<%= name%>ShellConstants;	
	import <%= base_package%>.shell.model.ModuleDescriptor;
	
	import org.puremvc.as3.multicore.interfaces.INotification;	
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;	
	
	public class LoadAllModulesCommand extends SimpleFabricationCommand {
		
		override public function execute(note:INotification):void {
			var moduleDescriptor:ModuleDescriptor = null;
		<%grid_modules = modules - ["Dashboard", "Authentication"] %>
		<%if grid_modules.empty?%>
			trace("no modules but Dashboard, and Authentication created yet. run ruby script/generate pure_module MyNewModule in the root of the project")
		<%end%>
		<%for modul in grid_modules%>
			trace("loading <%=modul.downcase%> module")
			moduleDescriptor = new ModuleDescriptor("<%=modul%>Module.swf");
			sendNotification(<%= name%>ShellConstants.ADD_MODULE, moduleDescriptor);
		<%end%>
		}
	}
}

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
fabricator-0.0.5 app_generators/pureapp/templates/shell/controller/load_all_modules_command.as
fabricator-0.0.5 generators/pure_module/templates/shell/controller/load_all_modules_command.as