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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 489275a4cddd096deb86a83dccb2afdaeae939af
4
- data.tar.gz: 3b9a3167770bd287283f8a6ec86f0f7e6cd53bcd
3
+ metadata.gz: 36b73afa95b8a6b7a105964ba67ed29263792c8b
4
+ data.tar.gz: 1be1862639947e08eb37e04cb6eea52b69208f2c
5
5
  SHA512:
6
- metadata.gz: 39bc051dd7f0ce0d880be8e0b510a99a7c718eddbc9e188b410366318602337180d7c946ca482dc66628c5e2024c24d865acb0c2e5cd386187f5e1c61f5aadf9
7
- data.tar.gz: 21ba479a19444349c99e98606ea1787b0a0a2d221c9a3de12d1e29029e965e34e1f69ec6accf21474299402092ad82bf0ac3ecbcc80d2702aa9f7215ef58be32
6
+ metadata.gz: 70ebf1df07c25c268f8088863c569849c3edab7a2126e8ed145d65a1b2b8570dc7fb4f435e230360f13d4bfa063de3d5eaca068012c183fe0b117075fdc78807
7
+ data.tar.gz: 672f548b170bcd0804eab2fb7d98b58dd54b54efb59c59604fc58002bd8ee3e472895de6f6b947526dbe957285eecb20aa668a8144d6d2658805318f6d4220b3
data/eh.sh ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ git add .
4
+ git commit -m 'i'
5
+ git push -u origin master
6
+
7
+ bundle exec rake release
@@ -1,3 +1,3 @@
1
1
  module Cleanfb
2
- VERSION = "0.1.1.1.1"
2
+ VERSION = "0.1.1.2"
3
3
  end
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 | defaults all input to yes"
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.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