public void Run(IPackageScript script) { if (script.Exists()) { script.Run(this); } }
void CreatePackageInitializationScripts() { scripts = new List <IPackageScript>(); foreach (IPackage package in GetPackages()) { IPackageScript script = CreateInitializeScript(package); if (script.Exists()) { scripts.Add(script); } } }