Class: SMPTool::CLI::Executor::Renamer

Inherits:
VolReadWriteOperator show all
Defined in:
lib/smp_tool/cli/executor/renamer.rb

Instance Method Summary collapse

Methods inherited from VolReadOperator

#initialize

Constructor Details

This class inherits a constructor from SMPTool::CLI::Executor::VolReadOperator

Instance Method Details

#callObject



7
8
9
10
11
12
# File 'lib/smp_tool/cli/executor/renamer.rb', line 7

def call
  fns = @volume.f_rename(@options[:old_fn], @options[:new_fn])
  @logger.es_info "File '#{fns.first}' was renamed to '#{fns.last}'"

  super
end