cleanfb 0.1.1.1.1 → 0.1.1.2
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/eh.sh +7 -0
- data/lib/cleanfb/version.rb +1 -1
- data/lib/cleanfb.rb +1 -4
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36b73afa95b8a6b7a105964ba67ed29263792c8b
|
4
|
+
data.tar.gz: 1be1862639947e08eb37e04cb6eea52b69208f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70ebf1df07c25c268f8088863c569849c3edab7a2126e8ed145d65a1b2b8570dc7fb4f435e230360f13d4bfa063de3d5eaca068012c183fe0b117075fdc78807
|
7
|
+
data.tar.gz: 672f548b170bcd0804eab2fb7d98b58dd54b54efb59c59604fc58002bd8ee3e472895de6f6b947526dbe957285eecb20aa668a8144d6d2658805318f6d4220b3
|
data/eh.sh
ADDED
data/lib/cleanfb/version.rb
CHANGED
data/lib/cleanfb.rb
CHANGED
@@ -7,13 +7,12 @@ module Cleanfb
|
|
7
7
|
return "Please supply a file" if ARGV[0].nil? || ARGV[0].empty?
|
8
8
|
|
9
9
|
if (ARGV[0] == "-h" or ARGV[0] == "--help")
|
10
|
-
return "Removes an agent's backups from the Puppet filebucket on the server.\nEx: cleanfb client\n options: -h or --help | help and information\n -y
|
10
|
+
return "Removes an agent's backups from the Puppet filebucket on the server.\nEx: cleanfb client\n\n options: -h or --help | help and information\n -y | defaults all input to yes"
|
11
11
|
end
|
12
12
|
arg = ARGV[0]
|
13
13
|
if !ARGV[1].nil? and ARGV[1] == "-y"
|
14
14
|
ans = "y"
|
15
15
|
else
|
16
|
-
print "test"
|
17
16
|
print "Remove #{arg} ? y|n: "
|
18
17
|
ans = STDIN.gets.chomp
|
19
18
|
end
|
@@ -23,8 +22,6 @@ module Cleanfb
|
|
23
22
|
cmd.each_line do |line|
|
24
23
|
folders = "/opt/puppetlabs/puppet/cache/bucket"
|
25
24
|
sum = line.split(" ")[0]
|
26
|
-
sum_start = sum.to_a.join["/"]
|
27
|
-
puts sum_start
|
28
25
|
folders += "/" + sum[0] + "/" + sum[1] + "/" + sum[2] + "/" + sum[3] + "/" + sum[4] + "/" + sum[5] + "/" + sum[6] + "/" + sum[7] + "/"
|
29
26
|
folders += sum + "/"
|
30
27
|
puts "Removing " + folders
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cleanfb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lhoffl
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- bin/console
|
55
55
|
- bin/setup
|
56
56
|
- cleanfb.gemspec
|
57
|
+
- eh.sh
|
57
58
|
- exe/cleanfb
|
58
59
|
- lib/cleanfb.rb
|
59
60
|
- lib/cleanfb/version.rb
|