Class: SMPTool::CLI::Executor::Pusher

Inherits:
VolReadWriteOperator show all
Defined in:
lib/smp_tool/cli/executor/pusher.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
13
14
15
16
17
18
19
# File 'lib/smp_tool/cli/executor/pusher.rb', line 7

def call
  files = _read_files(@options[:f_list])

  files.each do |f|
    fn = @volume.f_push(f)

    @logger.info "File '#{fn}' pushed to the volume"
  end

  @logger.es_info "#{files.length} files were pushed to the volume"

  super
end