cleanfb 0.1.1.3 → 0.1.1.3.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: 3b821b25e7e83ef799a7ea5e1ab4fd0fa29fbf65
4
- data.tar.gz: 0061f856cae5de7b417943b7856b175412100241
3
+ metadata.gz: 173c852d203e1245c531166d1c410fdb87383c89
4
+ data.tar.gz: 9386091ec43360ad4ab0a2e397576e1ea968f826
5
5
  SHA512:
6
- metadata.gz: aa0ebdd91c3a78edb0b0f334fc723c78c9b884b7f8c88334920e8176fc2eab9482fd1cb55b555e7f54d76f65ce8e6fd790ba2fc8623f5792efe49e99463a56d9
7
- data.tar.gz: 19f3cb7b8567eef1868b9dc0177035d339c95befe44b1e05639d494644ccacca980f906b65abad23dc80a6d8fa22c3a2f1a7999e67ee8fda724b2f96f99509e0
6
+ metadata.gz: 0c764a3ff202cf0676e386dfaaa3f7ee794ec2bacef593fc39e69ed1ab62cb634544effe90452431fc02fd19b69a84c64020543c22f843415b3a42394e63699b
7
+ data.tar.gz: 21f033b987e0194fcb1ad5ab40eda8f7d52901ff5f75d036a4eff18be829fe104766b33f576c049c1148ffba38b30c368748ad1a1390f66a0f5a2beed7fa529b
@@ -1,3 +1,3 @@
1
1
  module Cleanfb
2
- VERSION = "0.1.1.3"
2
+ VERSION = "0.1.1.3.1"
3
3
  end
data/lib/cleanfb.rb CHANGED
@@ -5,13 +5,14 @@ module Cleanfb
5
5
  class Clean
6
6
  def remove()
7
7
  return "Please supply a file" if ARGV[0].nil? || ARGV[0].empty?
8
-
9
- if (ARGV[0] == "-h" or ARGV[0] == "--help")
8
+
9
+ if (ARGV.include? "-h" or ARGV.include? == "--help")
10
10
  return "Remove backups of an agent from the Puppet master's filebucket.\n\n Usage: cleanfb <client>\n\n options: -h or --help | help and information\n -y | defaults all input to yes\n"
11
- end
11
+ end
12
12
  arg = ARGV[0]
13
- if !ARGV[1].nil? and ARGV[1] == "-y"
13
+ if !ARGV.nil? and ARGV.include? == "-y" and ARGV.length > 1
14
14
  ans = "y"
15
+ arg = ARGV[1] if (ARGV.index("-y") == 0)
15
16
  else
16
17
  print "Remove #{arg} ? y|n: "
17
18
  ans = STDIN.gets.chomp
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.3
4
+ version: 0.1.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lhoffl