Class: Aruba::Platforms::DetermineDiskUsage

Inherits:
Object
  • Object
show all
Defined in:
lib/aruba/platforms/determine_disk_usage.rb

Overview

Determinate disk usage

Instance Method Summary collapse

Instance Method Details

#call(paths) ⇒ Object



9
10
11
12
13
# File 'lib/aruba/platforms/determine_disk_usage.rb', line 9

def call(paths)
  size = paths.flatten.sum { |path| minimum_disk_space_used path }

  FileSize.new(size)
end