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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36b73afa95b8a6b7a105964ba67ed29263792c8b
4
- data.tar.gz: 1be1862639947e08eb37e04cb6eea52b69208f2c
3
+ metadata.gz: 2f5e824018d66383ae319629be2479e934756dcd
4
+ data.tar.gz: 9cfebe2e65d5855c7190e89eea79c73e8978fa33
5
5
  SHA512:
6
- metadata.gz: 70ebf1df07c25c268f8088863c569849c3edab7a2126e8ed145d65a1b2b8570dc7fb4f435e230360f13d4bfa063de3d5eaca068012c183fe0b117075fdc78807
7
- data.tar.gz: 672f548b170bcd0804eab2fb7d98b58dd54b54efb59c59604fc58002bd8ee3e472895de6f6b947526dbe957285eecb20aa668a8144d6d2658805318f6d4220b3
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
- puts response
12
+ unless response.nil? || response.empty? || (response.include? "Please")
13
+ puts response.magenta
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Cleanfb
2
- VERSION = "0.1.1.2"
2
+ VERSION = "0.1.1.2.1"
3
3
  end
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.\nEx: cleanfb client\n\n options: -h or --help | help and information\n -y | defaults all input to yes"
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"
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.2
4
+ version: 0.1.1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lhoffl