Class: HotCell::Fixtures::Measure
- Defined in:
- lib/hot_cell/test_operations.rb
Overview
Analysis: metadata out and no bytes, which is the shape with no outputs at all.
Constant Summary
Constants inherited from Operation
Instance Method Summary collapse
Methods inherited from Operation
abstract_operation, abstract_operation?, before_fork, before_worker_boot, inherited, limits, operation, operation_name, #run_tool, unreadable
Instance Method Details
#perform(inputs, _outputs, asked_for: nil) ⇒ Object
46 47 48 49 50 51 |
# File 'lib/hot_cell/test_operations.rb', line 46 def perform(inputs, _outputs, asked_for: nil) source, = inputs { bytes: File.size(source.path), digest: Digest::SHA256.file(source.path).hexdigest[0, 8], asked_for: asked_for } end |