cleanfb 0.1.1.2 → 0.1.1.2.1
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/exe/cleanfb +7 -1
- data/lib/cleanfb/version.rb +1 -1
- data/lib/cleanfb.rb +1 -1
- 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: 2f5e824018d66383ae319629be2479e934756dcd
|
4
|
+
data.tar.gz: 9cfebe2e65d5855c7190e89eea79c73e8978fa33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a460294378bd694b41ec2c11f098c423f642804f4c20332cec0febf7a688c8edb0e9f604728fced0ce7c1c85bc704bea0d79ef8517a037fd6e4245e14c5bc5a5
|
7
|
+
data.tar.gz: 43812e245d500c35925fc6e030492af27ca8b7a1db86472eb6bbe85687943ab5acfe109150d3dbfdfbc7dad1b643ba25fce8dde7fa1448f669752ead21c44e1b
|
data/exe/cleanfb
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
|
3
3
|
require 'cleanfb'
|
4
4
|
|
5
|
+
class String
|
6
|
+
def magenta; "\e[35m#{self}\e[0m" end
|
7
|
+
end
|
8
|
+
|
5
9
|
cleaner = Cleanfb::Clean.new
|
6
10
|
|
7
11
|
response = cleaner.remove
|
8
|
-
|
12
|
+
unless response.nil? || response.empty? || (response.include? "Please")
|
13
|
+
puts response.magenta
|
14
|
+
end
|
data/lib/cleanfb/version.rb
CHANGED
data/lib/cleanfb.rb
CHANGED
@@ -7,7 +7,7 @@ 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.\
|
10
|
+
return "Removes an agent's backups from the Puppet filebucket on the server.\n\n Usage: cleanfb <client>\n\n options: -h or --help | help and information\n -y | defaults all input to yes\n"
|
11
11
|
end
|
12
12
|
arg = ARGV[0]
|
13
13
|
if !ARGV[1].nil? and ARGV[1] == "-y"
|