rbbt-util 5.5.23 → 5.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/rbbt/resource/path.rb +2 -1
- data/lib/rbbt/resource.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTJkMDQxN2JlMDc3OTIzODg4NTU0NDJiMjMxYjgzYzI0ZWNmM2FkYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzdhMmE0NGNjM2VmYWRjZWFjMzg1NTk0YWViNDJiN2M1ZjZmMDEzZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTVjMTZiODMwOTY0MmYxNjUzNDJjMDJlZGI3YjQ1YjM2ZDFkYTVhNzU5YWI5
|
10
|
+
M2RkMDcyZGYwNjQ3NmFmNGMyZDYzNGMxNjg4OGVkZWZiODljZDBmNWNiNzZi
|
11
|
+
ZTE4YTJlYzFjZGQ2MGU4OTAxYjkzMjY2ZjkyMDk2MjZiOTRiYTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjA0NTY5ZTFmOGZjMWRmYjgxNTgwOWRjYzJiYmU1MzNkYWU4YjMyMzkzMzJi
|
14
|
+
YjZjN2YxZTNlYmMxNWQ1Y2Q2MTliZjg2YzE3ZTVhMmExMDk3NzA1MThiNDJj
|
15
|
+
OTQyNzZiM2E2YzJkZTBiODk5YTllY2NmMTAwZmY1NTQwNTk0M2U=
|
data/lib/rbbt/resource/path.rb
CHANGED
data/lib/rbbt/resource.rb
CHANGED
@@ -67,6 +67,7 @@ module Resource
|
|
67
67
|
when Net::HTTPRedirection then
|
68
68
|
location = response['location']
|
69
69
|
Log.debug("Feching directory from: #{location}. Into: #{final_path}")
|
70
|
+
FileUtils.mkdir_p final_path unless File.exists? final_path
|
70
71
|
Misc.in_dir final_path do
|
71
72
|
CMD.cmd('tar xvfz -', :in => Open.open(location))
|
72
73
|
end
|
@@ -77,7 +78,7 @@ module Resource
|
|
77
78
|
rescue
|
78
79
|
Log.warn "Could not retrieve (#{self.to_s}) #{ path } from #{ remote_server }"
|
79
80
|
Log.error $!.message
|
80
|
-
FileUtils.
|
81
|
+
FileUtils.rm_rf final_path if File.exists? final_path
|
81
82
|
return false
|
82
83
|
end
|
83
84
|
end
|