cleanfb 0.1.2.7 → 0.1.2.8
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 +23 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b05c0731458de2ebe7cd139c9e8d09637865924
|
4
|
+
data.tar.gz: 4614384c1a35704d12380183f34b5d71759ee22d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 841b1720284c1cb6a1a96c595061c8f29a49ae75a635248747a3f0647415b7a2016d4c97739ee72983d2f8b002e149e9fa06ecfe1b47989413283aeb1d649515
|
7
|
+
data.tar.gz: 6a6e53e5f43e778b1b4cb5c575968dacd9f04661fdad9bbfe288b005fa134dad70845755a75aac09c0bac1096623543285981436a4880e9b7a9028bbefcb976e
|
data/lib/cleanfb/version.rb
CHANGED
data/lib/cleanfb.rb
CHANGED
@@ -37,7 +37,29 @@ module Cleanfb
|
|
37
37
|
# if yes, retrieve the files and remove them
|
38
38
|
if ans == "y" || ans == "yes"
|
39
39
|
cmd = `puppet filebucket list -l|grep -i #{arg}`
|
40
|
-
|
40
|
+
|
41
|
+
unless (ARGV.include? "-y")
|
42
|
+
test = cmd.split(" ").last
|
43
|
+
multi_match = false
|
44
|
+
|
45
|
+
cmd.each_line do |line|
|
46
|
+
if !line.include? test
|
47
|
+
multi_match = true
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
if multi_match
|
52
|
+
print "Matched multiple hosts. Remove all? y|n: "
|
53
|
+
ans = STDIN.gets.chomp
|
54
|
+
|
55
|
+
unless ans == "y" || ans == "yes"
|
56
|
+
puts("Ending run")
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
|
62
|
+
unless cmd.nil? || cmd.empty?
|
41
63
|
cmd.each_line do |line|
|
42
64
|
path = "/opt/puppetlabs/puppet/cache/bucket"
|
43
65
|
sum = line.split(" ")[0]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cleanfb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.2.
|
4
|
+
version: 0.1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lhoffl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|