Sha256: 25c85cc7f88f2d350f1694fb0a4a671ec1b6395bdf35f8a10d32e9ba69a766f5

Contents?: true

Size: 306 Bytes

Versions: 22

Compression:

Stored size: 306 Bytes

Contents

# -*- coding: utf-8 -*-
require 'rbatch'
require 'fileutils'

# ファイル一括コピー
RBatch::Log.new do |log|
  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

22 entries across 22 versions & 1 rubygems

Version Path
rbatch-2.1.5 sample/bin/file_batch_copy.rb
rbatch-2.1.4 sample/bin/file_batch_copy.rb
rbatch-2.1.3 sample/bin/file_batch_copy.rb
rbatch-2.1.2 sample/bin/file_batch_copy.rb
rbatch-2.1.1 sample/bin/file_batch_copy.rb
rbatch-2.1.0 sample/bin/file_batch_copy.rb
rbatch-2.0.0 sample/bin/file_batch_copy.rb
rbatch-1.13.1 sample/bin/file_batch_copy.rb
rbatch-1.13.0 sample/bin/file_batch_copy.rb
rbatch-1.12.3 sample/bin/file_batch_copy.rb
rbatch-1.12.2 sample/bin/file_batch_copy.rb
rbatch-1.12.1 sample/bin/file_batch_copy.rb
rbatch-1.12.0 sample/bin/file_batch_copy.rb
rbatch-1.11.0 sample/bin/file_batch_copy.rb
rbatch-1.10.0 sample/bin/file_batch_copy.rb
rbatch-1.9.0 sample/bin/file_batch_copy.rb
rbatch-1.8.2 sample/bin/file_batch_copy.rb
rbatch-1.8.1 sample/bin/file_batch_copy.rb
rbatch-1.8.0 sample/bin/file_batch_copy.rb
rbatch-1.7.0 sample/bin/file_batch_copy.rb