Com.Eucalyptus.Windows.ScriptHandler.Handle C# (CSharp) Method

Handle() protected method

protected Handle ( ) : void
return void
        protected override void Handle()
        {
            EucaLogger.Debug("Script/Powershell Handler invoked");

            List<String> scripts = MakeScriptFragments();

            foreach (String file in scripts)
            {
                if (file.EndsWith(".cmd"))
                    ExecuteCommandLine(file);
                else if (file.EndsWith(".ps1"))
                    ExecutePowershell(file);
                else
                    EucaLogger.Error("Unknown file format found");
            }
        }