C# Class CloudInit.Modules.Core.PowershellModuleBase

Base class to execute a powershell script
Inheritance: IInputModule
Show file Open project: bwight/CloudInit.NET

Public Methods

Method Description
Execute ( String input ) : String

Executes the script

Protected Methods

Method Description
LogEvent ( Exception ex ) : void

Writes an entry to the event log if an event log object has been initialized

WriteOutput ( String output ) : void

Writes the output to the log file

Method Details

Execute() public method

Executes the script
public Execute ( String input ) : String
input String Input file to execute
return String

LogEvent() protected method

Writes an entry to the event log if an event log object has been initialized
protected LogEvent ( Exception ex ) : void
ex System.Exception The exception to log
return void

WriteOutput() protected method

Writes the output to the log file
protected WriteOutput ( String output ) : void
output String The output.
return void