Class: SMPTool::CLI::Executor::Creator
- Inherits:
-
Object
- Object
- SMPTool::CLI::Executor::Creator
- Includes:
- BinWriteMixin
- Defined in:
- lib/smp_tool/cli/executor/creator.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(output:, volume_specs:, logger:, **options) ⇒ Creator
constructor
A new instance of Creator.
Constructor Details
#initialize(output:, volume_specs:, logger:, **options) ⇒ Creator
Returns a new instance of Creator.
9 10 11 12 13 14 |
# File 'lib/smp_tool/cli/executor/creator.rb', line 9 def initialize(output:, volume_specs:, logger:, **) @logger = logger @output = output @volume_specs = volume_specs @options = end |
Instance Method Details
#call ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/smp_tool/cli/executor/creator.rb', line 16 def call vol = SMPTool::VirtualVolume::Volume.new( bootloader: @volume_specs.bootloader, home_block: @volume_specs.home_block, volume_params: @volume_specs.volume_params ) @logger.debug "Virtual volume created" _save_volume(path: @output, volume: vol, **@options) end |