Sha256: 2891ca64f2eb9b545b847012f3fc2e2376077f8c941a45c556e584307a8b996c
Contents?: true
Size: 574 Bytes
Versions: 17
Compression:
Stored size: 574 Bytes
Contents
module Retest class Command class Rake attr_reader :all, :file_system def initialize(all:, file_system: FileSystem) @file_system = file_system @all = all end def to_s return "#{root_command} TEST=<test>" unless all root_command end def format_batch(*files) files.size > 1 ? "\"{#{files.join(',')}}\"" : files.first end private def root_command return 'bin/rake test' if file_system.exist? 'bin/rake' 'bundle exec rake test' end end end end
Version data entries
17 entries across 17 versions & 1 rubygems