Class: SMPTool::CLI::Executor::Deleter

Inherits:
VolReadWriteOperator show all
Includes:
SqueezeMixin
Defined in:
lib/smp_tool/cli/executor/deleter.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



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/smp_tool/cli/executor/deleter.rb', line 9

def call
  @options[:f_list].each do |file|
    fn = @volume.f_delete(file)
    @logger.info "File '#{fn}' was deleted from the volume"
  end

  @logger.es_info "#{@options[:f_list].length} files were deleted from the volume"

  _squeeze if @options[:squeeze]

  super
end