class Mixlibrary::Core::Shell::Scripts::Base
Base
class for all script classes. Provides an Interface of sorts that all other classes must implement and also provides the base methods that would need to be implemented.
Public Instance Methods
orchestrate()
click to toggle source
Orchestrates running the script. Might be as simple as calling shell_out or more complicated like doing syntax validation of the script before execution
# File lib/mixlibrary/core/shell/scripts/base.rb, line 12 def orchestrate raise "Not Implemented Exception" end
Protected Instance Methods
run_command(shell_executable, flags, filename_prefix, file_extension, code,shellout_options, eval_error)
click to toggle source
# File lib/mixlibrary/core/shell/scripts/base.rb, line 18 def run_command(shell_executable, flags, filename_prefix, file_extension, code,shellout_options, eval_error) shellobj =Scripts::ShellOutWrapper.new(shell_executable, flags, filename_prefix, file_extension, code, shellout_options) if(eval_error) return shellobj.run_command! else return shellobj.run_command end end