Class: PPL::Bundle
- Inherits:
-
Object
- Object
- PPL::Bundle
- Defined in:
- lib/pod-pipeline/util/bundle.rb
Class Method Summary collapse
Class Method Details
.cp(inputs, output) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pod-pipeline/util/bundle.rb', line 3 def self.cp(inputs, output) puts "\n目标文件:#{output}\n" #获取合并文件的路径序列 inputs.each do |input| puts "\n合并路径:#{input}" Dir[input].each do |input_bundle|; #若 input_bundle 为输出目录 则跳过 next if input_bundle.eql? output #合并 puts "合并资源包:" + input_bundle FileUtils.cp_r(input_bundle, output, :preserve => true) end end end |