Sha256: e4c404452c14cb0978fdcfff9f4e1b7d6d8a98ea9c08dd9d49b9bbae984dcd3b

Contents?: true

Size: 541 Bytes

Versions: 9

Compression:

Stored size: 541 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.empty?
          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

9 entries across 9 versions & 1 rubygems

Version Path
quality-22.0.0 lib/quality/tools/bigfiles.rb
quality-21.0.6 lib/quality/tools/bigfiles.rb
quality-21.0.5 lib/quality/tools/bigfiles.rb
quality-21.0.4 lib/quality/tools/bigfiles.rb
quality-21.0.3 lib/quality/tools/bigfiles.rb
quality-21.0.2 lib/quality/tools/bigfiles.rb
quality-21.0.1 lib/quality/tools/bigfiles.rb
quality-20.1.1 lib/quality/tools/bigfiles.rb
quality-21.0.0 lib/quality/tools/bigfiles.rb