Class: SMPTool::CLI::Executor::VolReadWriteOperator
- Inherits:
-
VolReadOperator
- Object
- VolReadOperator
- SMPTool::CLI::Executor::VolReadWriteOperator
- Includes:
- BinWriteMixin
- Defined in:
- lib/smp_tool/cli/executor/vol_read_write_operator.rb
Overview
Base class for the executors that read a volume and do an operation on it, then save the state back to a file.
Instance Method Summary collapse
Methods inherited from VolReadOperator
Constructor Details
This class inherits a constructor from SMPTool::CLI::Executor::VolReadOperator
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/smp_tool/cli/executor/vol_read_write_operator.rb', line 13 def call _save_volume(path: @options[:output], volume: @volume, **@options) if @options.key?(:output) _save_volume(path: @input, volume: @volume, **@options) if @options[:apply] return if @options.key?(:output) || @options[:apply] @logger.warning "Changes were not saved since you didn't specify the output file " \ "or the `-a` option to apply changes to the input file" end |