Class: SMPTool::CLI::Commands::Rename

Inherits:
VolumeOperation show all
Defined in:
lib/smp_tool/cli/commands/rename.rb

Overview

Command to rename a file on the volume.

Instance Method Summary collapse

Instance Method Details

#call(input:, new_fn:, old_fn:, **options) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/smp_tool/cli/commands/rename.rb', line 22

def call(input:, new_fn:, old_fn:, **options)
  Executor::Renamer.new(
    input: input,
    old_fn: old_fn,
    new_fn: new_fn,
    logger: _logger(options[:verbosity]),
    **options
  ).call
end