public void ExecuteRubyScript(IGingerAction GA, [Label("Ruby Script Content")] string RubyScriptContent, [Default("=")] [Label("Delimeter (Split the console output param/value)")] [Tooltip("Split the console output param/value")] string Delimeter, [Label("Ruby Parameters")] List <RubyPrameters> RubyPrameters) { RubyExecution rubyExecution = new RubyExecution(); rubyExecution.ExecutionMode = RubyExecution.eExecutionMode.ScriptPath; rubyExecution.GingerAction = GA; rubyExecution.SetContent(RubyScriptContent); rubyExecution.Delimeter = Delimeter; rubyExecution.RubyPrameters = RubyPrameters; rubyExecution.Execute(); }
public void ExecuteRubyScriptFile(IGingerAction GA, [Browse(true)] [BrowseType(BrowseType = BrowseTypeAttribute.eBrowseType.File)] [FileType("rb")] [Label("Ruby Script Path")] string RubyScriptPath, [Default("=")] [Label("Delimeter (Split the console output param/value)")] [Tooltip("Split the console output param/value")] string Delimeter, [Label("Ruby Parameters")] List <RubyPrameters> RubyPrameters) { RubyExecution rubyExecution = new RubyExecution(); rubyExecution.ExecutionMode = RubyExecution.eExecutionMode.ScriptPath; rubyExecution.GingerAction = GA; rubyExecution.RubyScriptPath = RubyScriptPath; rubyExecution.Delimeter = Delimeter; rubyExecution.RubyPrameters = RubyPrameters; rubyExecution.Execute(); }