Method: Pipeline.get_output_format
- Defined in:
- lib/pipeline.rb
.get_output_format(options) ⇒ Object
114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/pipeline.rb', line 114 def self.get_output_format if [:output_file] get_format_from_output_file [:output_file] elsif [:output_format] get_format_from_output_format [:output_format] else begin require 'terminal-table' return [:to_s] rescue LoadError return [:to_json] end end end |