wolf_core 0.1.46 → 0.1.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/utils/file_utils.rb +8 -2
- data/lib/wolf_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d50df908eb73594298247664b0ba46f33a2a8ada9562ae7d8fd952158398c4a
|
4
|
+
data.tar.gz: 9e2c95b958350dab98f0d497e3157c7d784a60b138019f54b170f8e9e1ea8569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd35e27e31da3b43cbe8cb7701a1516d8fe99c0f2daae0d2e4ca037d546e014f7bfd1dd95b7a31aa1ca227197598e10ba5a51263e05149ce854e2ec1cf613280
|
7
|
+
data.tar.gz: f5b3fe115024162a70ed46b433db963ceb959890df8ee13f84b54c348ef1b9ecf77e056b293853e12e421e328cc678c3d96d6c20732c2b9f4a46eaf2148d676e
|
@@ -1,5 +1,9 @@
|
|
1
|
+
require_relative 'logging_utils'
|
2
|
+
|
1
3
|
module WolfCore
|
2
4
|
module FileUtils
|
5
|
+
extend WolfCore::LoggingUtils
|
6
|
+
|
3
7
|
module_function
|
4
8
|
|
5
9
|
def require_relative_folder(*folders)
|
@@ -14,8 +18,10 @@ module WolfCore
|
|
14
18
|
missing_files = []
|
15
19
|
files_to_require.each do |file|
|
16
20
|
begin
|
21
|
+
log_object "Requiring file: #{file}"
|
17
22
|
require_relative file
|
18
23
|
rescue NameError
|
24
|
+
log_object "Error requiring file: #{file}"
|
19
25
|
missing_files << file
|
20
26
|
end
|
21
27
|
end
|
@@ -27,10 +33,10 @@ module WolfCore
|
|
27
33
|
files_to_delete = Dir.glob(pattern)
|
28
34
|
files_to_delete.each do |file|
|
29
35
|
File.delete(file)
|
30
|
-
|
36
|
+
log_object "File deleted: #{file}"
|
31
37
|
end
|
32
38
|
|
33
|
-
|
39
|
+
log_object "File Deleting Process Finished! (#{files_to_delete.size} files deleted)"
|
34
40
|
end
|
35
41
|
end
|
36
42
|
end
|
data/lib/wolf_core/version.rb
CHANGED