Method: WLST::Runner#process

Defined in:
lib/wlst/wlst.rb

#process(params = {}) ⇒ Object



212
213
214
215
216
217
# File 'lib/wlst/wlst.rb', line 212

def process params = {}
  result = run_and_get_result
  clear_screen if params[:clear_screen] and @print
  puts result if @print
  File.open(@output_file, 'w') { |f| f.write result } if @output_file
end