Sha256: 252c0a81c84b91ba0b53ad2a8cff979dc1f18f206c3f61d359440f43a552f3bf

Contents?: true

Size: 269 Bytes

Versions: 12

Compression:

Stored size: 269 Bytes

Contents

require 'rbatch'

# File butch copy
RBatch::Log.new do |log|
  require 'fileutils'
  target_dir = RBatch::config["target_dir"]
  RBatch::config["file_list"].each do | file |
    log.info("copy " + file + " " + target_dir)
    FileUtils.cp_r(file,target_dir)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rbatch-2.6.1 sample/bin/file_batch_copy.rb
rbatch-2.6.0 sample/bin/file_batch_copy.rb
rbatch-2.5.1 sample/bin/file_batch_copy.rb
rbatch-2.5.0 sample/bin/file_batch_copy.rb
rbatch-2.4.0 sample/bin/file_batch_copy.rb
rbatch-2.3.1 sample/bin/file_batch_copy.rb
rbatch-2.3.0 sample/bin/file_batch_copy.rb
rbatch-2.2.0 sample/bin/file_batch_copy.rb
rbatch-2.1.9 sample/bin/file_batch_copy.rb
rbatch-2.1.8 sample/bin/file_batch_copy.rb
rbatch-2.1.7 sample/bin/file_batch_copy.rb
rbatch-2.1.6 sample/bin/file_batch_copy.rb