Class: HotCell::Fixtures::HomeMarker
- Defined in:
- lib/hot_cell/test_operations.rb
Overview
Leaves a file in $HOME and says whether an earlier request already left one. A tool reads its configuration from $HOME and a configuration file is executable — ImageMagick runs the command lines in delegates.xml and applies the rights in policy.xml — so a home that outlives its request lets one compromised conversion reconfigure every later one on that slot. See adr/0003.
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) ⇒ Object
94 95 96 97 98 99 |
# File 'lib/hot_cell/test_operations.rb', line 94 def perform(_inputs, _outputs) found = File.exist?(marker) File.write marker, "planted" { found: found, home: ENV["HOME"] } end |