cleanfb 0.2.1.6 → 0.2.1.7
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 +4 -4
- data/lib/cleanfb/version.rb +1 -1
- data/lib/cleanfb.rb +14 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 652b65430680d54c1975d383e37c8e3e23d966d3
|
4
|
+
data.tar.gz: f54f195e47416835a8c235484a78c53808c2821e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e118f4606a28d75ce9feb5d4b67b89063dac447b460c898962e7a4b8ee9267924e50d84d80a5dab9a4991f8459b75a98dceca43d36ef412a0be5b1fecb3114a5
|
7
|
+
data.tar.gz: 556c32d0830add1e27ab6c07814e093f7b16c7a18a250e259745b87ce95221742831232e091bf2c71306cff5c3926fb47daf1e7ffa627bbbc542a1d648e5c1b8
|
data/lib/cleanfb/version.rb
CHANGED
data/lib/cleanfb.rb
CHANGED
@@ -171,23 +171,26 @@ module Cleanfb
|
|
171
171
|
|
172
172
|
host = arg.scan(/_\w+\.\w+\.?\w+?_/).join("").gsub!("_", "")
|
173
173
|
|
174
|
-
puts ":: " + host
|
175
174
|
store(host)
|
176
175
|
|
177
176
|
file = arg
|
178
|
-
sum = Digest::MD5.file file
|
179
|
-
sum = sum.hexdigest + ""
|
180
|
-
start = (sum.scan /\w/).join("/")
|
181
|
-
path = "/opt/puppetlabs/puppet/cache/bucket"
|
177
|
+
#sum = Digest::MD5.file file
|
178
|
+
#sum = sum.hexdigest + ""
|
179
|
+
#start = (sum.scan /\w/).join("/")
|
180
|
+
#path = "/opt/puppetlabs/puppet/cache/bucket"
|
182
181
|
|
183
|
-
path += "/" + start[0..15] + sum + "/"
|
182
|
+
#path += "/" + start[0..15] + sum + "/"
|
184
183
|
|
185
184
|
if File.exist? file
|
186
|
-
puts "Restoring " + path
|
187
|
-
unless Dir.exist? path
|
188
|
-
|
189
|
-
end
|
190
|
-
|
185
|
+
#puts "Restoring " + path
|
186
|
+
#unless Dir.exist? path
|
187
|
+
# cmd = `mkdir -p #{path}`
|
188
|
+
#end
|
189
|
+
|
190
|
+
|
191
|
+
#cmd = `cp #{file} #{path}contents`
|
192
|
+
puts "puppet filebucket -l backup #{file}"
|
193
|
+
cmd = `puppet filebucket -l backup #{file}`
|
191
194
|
else
|
192
195
|
puts "No file #{arg} found."
|
193
196
|
end
|