Class: HotCell::Fixtures::Uppercase

Inherits:
Operation
  • Object
show all
Defined in:
lib/hot_cell/test_operations.rb

Constant Summary

Constants inherited from Operation

Operation::READ_BYTES

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) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/hot_cell/test_operations.rb', line 21

def perform(inputs, outputs)
  source, = inputs
  destination, = outputs
  File.binwrite destination.path, File.binread(source.path).upcase

  { bytes: File.size(destination.path) }
end