Method: Snapshot::TestCommandGenerator.pipe
- Defined in:
- snapshot/lib/snapshot/test_command_generator.rb
.pipe(language: nil, locale: nil, log_path: nil) ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'snapshot/lib/snapshot/test_command_generator.rb', line 24 def pipe(language: nil, locale: nil, log_path: nil) tee_command = ['tee'] tee_command << '-a' if log_path && File.exist?(log_path) tee_command << log_path.shellescape if log_path xcpretty = "xcpretty #{Snapshot.config[:xcpretty_args]}" xcpretty << "--no-color" if Helper.colors_disabled? return ["| #{tee_command.join(' ')} | #{xcpretty}"] end |