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-1.6.6 sample/bin/file_batch_copy.rb
rbatch-1.6.4 sample/bin/file_batch_copy.rb