raykit 0.0.398 → 0.0.399
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/filesystem.rb +4 -1
- data/lib/raykit/git/repositories.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7b05f830a5453ee89a4deb45c07985abd2da04438f1f245232439acfa7712a0
|
4
|
+
data.tar.gz: 10ad2273ce10bbd102fd6a284f4c508e759f738691baa32dac1db320f7b9d685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc5e4a82d286210f8a9d9bb4cc332dde18820fd1e57fbf2fe368b5f5e3ac3ee01e45cc57355cdf065382be93bc848a1ac24a34c76d2a04c004da99bc9364ba9d
|
7
|
+
data.tar.gz: 52458eace0ae6f78d09a506435efd016ff0c00fd412ba6dda823f2e915552b71a9cc89d29d82b84c588d98bd3648cb03c693cfb919d59e8e7205efe9b53fa93e
|
data/lib/raykit/filesystem.rb
CHANGED
@@ -3,14 +3,17 @@ module Raykit
|
|
3
3
|
def self.copy_files(source_dir, target_dir, glob_pattern)
|
4
4
|
FileUtils.mkdir_p(target_dir) if !Dir.exist?(target_dir)
|
5
5
|
#Dir.chdir(source_dir) do
|
6
|
+
file_count = 0
|
6
7
|
Dir.glob("#{source_dir}/#{glob_pattern}").each { |f|
|
7
8
|
rel = f.gsub("#{source_dir}/", "")
|
8
9
|
dest = "#{target_dir}/#{rel}"
|
9
10
|
FileUtils.mkdir_p(File.dirname(dest)) if (!Dir.exists?(File.dirname(dest)))
|
10
|
-
puts " copying #{rel} to #{dest}"
|
11
|
+
#puts " copying #{rel} to #{dest}"
|
11
12
|
FileUtils.cp(f, dest)
|
13
|
+
file_count = file_count + 1
|
12
14
|
}
|
13
15
|
#end
|
16
|
+
puts " copied " + file_count.to_s + " file from #{source_dir} to #{target_dir}"
|
14
17
|
end
|
15
18
|
|
16
19
|
def self.copy_file_to_dir(file, dir)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raykit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.399
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|