surrender 0.8.3 → 0.8.4

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.
data/README.md CHANGED
@@ -71,6 +71,18 @@ policies, while `backup.2013-12-14.tar.gz` was voted to be kept by the most rece
71
71
 
72
72
  The `--verbose` flag outputs to STDERR, keeping STDOUT clean.
73
73
 
74
+ ## Common pipelines
75
+
76
+ ### Clean up your Amazon S3 bucket
77
+
78
+ $ s3cmd ls s3://mybucket | awk '{ print $NF }' | surrender | xargs s3cmd del
79
+
80
+ First, we list the contents of `mybucket`. After that, we extract just our file's name from the list.
81
+ Next we surrender any names which should be deleted, and pass each line to `s3cmd del`, which results
82
+ in a certain number of files being deleted. `s3cmd` will be called once per line of the input. In the
83
+ normal case, you should not be deleting many files at once, and there should not be any performance
84
+ problems.
85
+
74
86
  ## Contributing
75
87
 
76
88
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module Surrender
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
data/surrender.gemspec CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q{Given a list of files on STDIN, returns on STDOUT the list of files that should be rm'd - namely the list of files which don't match the retain rules.}
12
12
  gem.summary = %q{Acts as a filter, returning the list of files that don't match the retain rules}
13
13
  gem.homepage = "https://github.com/francois/surrender"
14
+ gem.license = 'MIT'
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: surrender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -77,7 +77,8 @@ files:
77
77
  - spec/yearly_policy_spec.rb
78
78
  - surrender.gemspec
79
79
  homepage: https://github.com/francois/surrender
80
- licenses: []
80
+ licenses:
81
+ - MIT
81
82
  post_install_message:
82
83
  rdoc_options: []
83
84
  require_paths:
@@ -90,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
91
  version: '0'
91
92
  segments:
92
93
  - 0
93
- hash: 715898748471192036
94
+ hash: 4125011304515568474
94
95
  required_rubygems_version: !ruby/object:Gem::Requirement
95
96
  none: false
96
97
  requirements:
@@ -99,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  version: '0'
100
101
  segments:
101
102
  - 0
102
- hash: 715898748471192036
103
+ hash: 4125011304515568474
103
104
  requirements: []
104
105
  rubyforge_project:
105
106
  rubygems_version: 1.8.25