/usr/lib/ruby/vendor_ruby/aruba/platforms/determine_disk_usage.rb is in ruby-aruba 0.14.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | require 'aruba/platforms/disk_usage_calculator'
# Aruba
module Aruba
# Platforms
module Platforms
# Determinate disk usage
#
# @private
class DetermineDiskUsage
def call(*args)
args = args.flatten
physical_block_size = args.pop
paths = args
size = paths.flatten.map do |p|
DiskUsageCalculator.new.call(
p.blocks,
physical_block_size
)
end.inject(0, &:+)
FileSize.new(size)
end
end
end
end
|