Sha256: 14e355c38f12a2ccbe3466c8b81f0ca5cf4460c1eaad5f06a806fb3e47a30488

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

module Quality
  module Tools
    # Adds 'bigfiles' tool support to quality gem
    module BigFiles
      private

      def bigfiles_args
        args = ['--glob', "'#{source_files_glob}'"]
        if exclude_files.size > 0
          args << ['--exclude-glob', "'#{source_files_exclude_glob}'"]
        end
        args.join(' ')
      end

      def quality_bigfiles
        ratchet_quality_cmd('bigfiles',
                            args: bigfiles_args) do |line|
          line.split(':')[0].to_i
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quality-14.1.0 lib/quality/tools/bigfiles.rb