s3cp 1.1.37 → 1.1.38
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +13 -1
- data/lib/s3cp/#Untitled-3# +2 -0
- data/lib/s3cp/s3cat.rb +2 -2
- data/lib/s3cp/s3ls.rb +9 -3
- data/lib/s3cp/version.rb +1 -1
- metadata +127 -141
data/History.txt
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
-
=== 1.1.
|
1
|
+
=== 1.1.38 (2014-06-11)
|
2
|
+
|
3
|
+
* Added new --storage-class option to `s3ls` that displays the backing
|
4
|
+
storage class (STANDARD/GLACIER).
|
5
|
+
|
6
|
+
* Upgrade to aws-sdk ~> 1.36.2
|
7
|
+
|
8
|
+
=== 1.1.37 (2013-08-26)
|
9
|
+
|
2
10
|
* Fixed regression introduced in v1.1.33.
|
3
11
|
|
12
|
+
=== 1.1.36 (2013-08-26)
|
13
|
+
|
14
|
+
* Don't use; regression introduced in v1.1.33.
|
15
|
+
|
4
16
|
=== 1.1.35 (2013-08-26)
|
5
17
|
|
6
18
|
* Don't use; regression introduced in v1.1.33.
|
data/lib/s3cp/s3cat.rb
CHANGED
@@ -39,11 +39,11 @@ op = OptionParser.new do |opts|
|
|
39
39
|
options[:edit] = edit
|
40
40
|
end
|
41
41
|
|
42
|
-
opts.on("--head SIZE", "Download only 'head' part of the file
|
42
|
+
opts.on("--head SIZE", "Download only 'head' part of the file, e.g. 4KB, 1024B, 2GB") do |size|
|
43
43
|
options[:head] = S3CP.size_in_bytes(size)
|
44
44
|
end
|
45
45
|
|
46
|
-
opts.on("--tail SIZE", "Download only 'tail' part of the file
|
46
|
+
opts.on("--tail SIZE", "Download only 'tail' part of the file, e.g. 4KB, 1024B, 2GB") do |size|
|
47
47
|
options[:tail] = S3CP.size_in_bytes(size)
|
48
48
|
end
|
49
49
|
|
data/lib/s3cp/s3ls.rb
CHANGED
@@ -63,6 +63,11 @@ op = OptionParser.new do |opts|
|
|
63
63
|
options[:precision] = precision.to_i
|
64
64
|
end
|
65
65
|
|
66
|
+
opts.on("--storage-class", "Display storage class (implies -l long listing format)") do
|
67
|
+
options[:storage_class] = true
|
68
|
+
options[:long_format] = true
|
69
|
+
end
|
70
|
+
|
66
71
|
opts.on_tail("-h", "--help", "Show this message") do
|
67
72
|
puts op
|
68
73
|
exit
|
@@ -114,7 +119,8 @@ S3CP.standard_exception_handling(options) do
|
|
114
119
|
size = entry.content_length
|
115
120
|
size = S3CP.format_filesize(size, :unit => options[:unit], :precision => options[:precision])
|
116
121
|
size = ("%#{7 + options[:precision]}s " % size)
|
117
|
-
|
122
|
+
storage = options[:storage_class] ? (" %-9s" % entry.storage_class) : ""
|
123
|
+
puts "#{entry.last_modified.strftime(options[:date_format])} #{size}#{storage} #{key}"
|
118
124
|
else
|
119
125
|
puts key
|
120
126
|
end
|
@@ -136,7 +142,7 @@ S3CP.standard_exception_handling(options) do
|
|
136
142
|
break if display.call(entry)
|
137
143
|
end
|
138
144
|
else
|
139
|
-
Struct.new("S3Entry", :key, :last_modified, :content_length)
|
145
|
+
Struct.new("S3Entry", :key, :last_modified, :content_length, :storage_class)
|
140
146
|
|
141
147
|
s3_options = Hash.new
|
142
148
|
s3_options[:bucket_name] = @bucket
|
@@ -148,7 +154,7 @@ S3CP.standard_exception_handling(options) do
|
|
148
154
|
begin
|
149
155
|
response = @s3.client.list_objects(s3_options)
|
150
156
|
response[:contents].each do |object|
|
151
|
-
entry = Struct::S3Entry.new(object[:key], object[:last_modified], object[:size].to_i)
|
157
|
+
entry = Struct::S3Entry.new(object[:key], object[:last_modified], object[:size].to_i, object[:storage_class])
|
152
158
|
stop = display.call(entry)
|
153
159
|
break if stop
|
154
160
|
end
|
data/lib/s3cp/version.rb
CHANGED
metadata
CHANGED
@@ -1,137 +1,132 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3cp
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.38
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 37
|
10
|
-
version: 1.1.37
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Alex Boisvert
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: extensions
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
22
17
|
none: false
|
23
|
-
requirements:
|
18
|
+
requirements:
|
24
19
|
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
|
27
|
-
segments:
|
28
|
-
- 0
|
29
|
-
- 6
|
30
|
-
version: "0.6"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.6'
|
31
22
|
type: :runtime
|
32
23
|
prerelease: false
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.6'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: highline
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
37
33
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
hash: 1
|
42
|
-
segments:
|
43
|
-
- 1
|
44
|
-
- 5
|
45
|
-
- 1
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
46
37
|
version: 1.5.1
|
47
38
|
type: :runtime
|
48
39
|
prerelease: false
|
49
|
-
|
50
|
-
name: highline
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
41
|
none: false
|
54
|
-
requirements:
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.5.1
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: aws-sdk
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
55
51
|
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
segments:
|
59
|
-
- 1
|
60
|
-
- 8
|
61
|
-
- 3
|
62
|
-
version: 1.8.3
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.36.2
|
63
54
|
type: :runtime
|
64
55
|
prerelease: false
|
65
|
-
|
66
|
-
name: aws-sdk
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
57
|
none: false
|
70
|
-
requirements:
|
58
|
+
requirements:
|
71
59
|
- - ~>
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.36.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: progressbar
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
78
69
|
version: 0.10.0
|
79
70
|
type: :runtime
|
80
71
|
prerelease: false
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.10.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: nokogiri
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
85
81
|
none: false
|
86
|
-
requirements:
|
82
|
+
requirements:
|
87
83
|
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
hash: 23
|
90
|
-
segments:
|
91
|
-
- 1
|
92
|
-
- 5
|
93
|
-
- 10
|
84
|
+
- !ruby/object:Gem::Version
|
94
85
|
version: 1.5.10
|
95
86
|
type: :runtime
|
96
87
|
prerelease: false
|
97
|
-
|
98
|
-
name: nokogiri
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
89
|
none: false
|
102
|
-
requirements:
|
90
|
+
requirements:
|
103
91
|
- - ~>
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.5.10
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rspec
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
110
101
|
version: 2.5.0
|
111
102
|
type: :development
|
112
103
|
prerelease: false
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 2.5.0
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rake
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
117
113
|
none: false
|
118
|
-
requirements:
|
114
|
+
requirements:
|
119
115
|
- - ~>
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
hash: 49
|
122
|
-
segments:
|
123
|
-
- 0
|
124
|
-
- 8
|
125
|
-
- 7
|
116
|
+
- !ruby/object:Gem::Version
|
126
117
|
version: 0.8.7
|
127
118
|
type: :development
|
128
119
|
prerelease: false
|
129
|
-
|
130
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.8.7
|
131
126
|
description:
|
132
|
-
email:
|
127
|
+
email:
|
133
128
|
- alex.boisvert@gmail.com
|
134
|
-
executables:
|
129
|
+
executables:
|
135
130
|
- s3buckets
|
136
131
|
- s3cat
|
137
132
|
- s3cp
|
@@ -148,81 +143,72 @@ executables:
|
|
148
143
|
- s3tree
|
149
144
|
- s3up
|
150
145
|
extensions: []
|
151
|
-
|
152
|
-
extra_rdoc_files:
|
146
|
+
extra_rdoc_files:
|
153
147
|
- README.md
|
154
148
|
- History.txt
|
155
|
-
files:
|
156
|
-
- lib/s3cp.rb
|
157
|
-
- lib/s3cp/s3cat.rb
|
158
|
-
- lib/s3cp/s3tree.rb
|
159
|
-
- lib/s3cp/#Untitled-5#
|
160
|
-
- lib/s3cp/s3ls.rb
|
161
|
-
- lib/s3cp/s3du.rb
|
149
|
+
files:
|
162
150
|
- lib/s3cp/s3mod.rb
|
151
|
+
- lib/s3cp/s3du.rb
|
152
|
+
- lib/s3cp/utils.rb
|
153
|
+
- lib/s3cp/s3cp.rb
|
154
|
+
- lib/s3cp/#Untitled-3#
|
163
155
|
- lib/s3cp/completion.rb
|
164
156
|
- lib/s3cp/s3buckets.rb
|
165
|
-
- lib/s3cp/
|
166
|
-
- lib/s3cp/
|
167
|
-
- lib/s3cp/s3stat.rb
|
157
|
+
- lib/s3cp/s3cat.rb
|
158
|
+
- lib/s3cp/s3up.rb
|
168
159
|
- lib/s3cp/version.rb~
|
169
|
-
- lib/s3cp/
|
170
|
-
- lib/s3cp/s3lifecycle.rb
|
160
|
+
- lib/s3cp/version.rb
|
171
161
|
- lib/s3cp/s3rm.rb
|
172
|
-
- lib/s3cp
|
162
|
+
- lib/s3cp/#Untitled-5#
|
163
|
+
- lib/s3cp/s3lifecycle.rb
|
164
|
+
- lib/s3cp/s3ls.rb
|
165
|
+
- lib/s3cp/s3tree.rb
|
166
|
+
- lib/s3cp/s3stat.rb
|
167
|
+
- lib/s3cp.rb
|
173
168
|
- History.txt
|
174
169
|
- README.md
|
175
|
-
- bin/
|
176
|
-
- bin/s3dir
|
177
|
-
- bin/s3mv
|
178
|
-
- bin/s3cat
|
179
|
-
- bin/s3ls
|
170
|
+
- bin/s3cp
|
180
171
|
- bin/s3edit
|
181
|
-
- bin/
|
172
|
+
- bin/s3cat
|
173
|
+
- bin/s3cp_complete
|
174
|
+
- bin/s3du
|
182
175
|
- bin/s3tree
|
176
|
+
- bin/s3buckets
|
177
|
+
- bin/tmp
|
178
|
+
- bin/s3mv
|
179
|
+
- bin/s3edit~
|
183
180
|
- bin/s3mod
|
181
|
+
- bin/s3rm
|
184
182
|
- bin/s3up
|
185
|
-
- bin/
|
186
|
-
- bin/s3du
|
187
|
-
- bin/s3cp
|
183
|
+
- bin/s3ls
|
188
184
|
- bin/s3lifecycle
|
189
|
-
- bin/s3rm
|
190
185
|
- bin/s3stat
|
191
|
-
- bin/
|
186
|
+
- bin/s3dir
|
192
187
|
homepage:
|
193
188
|
licenses: []
|
194
|
-
|
195
189
|
post_install_message:
|
196
190
|
rdoc_options: []
|
197
|
-
|
198
|
-
require_paths:
|
191
|
+
require_paths:
|
199
192
|
- lib
|
200
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
193
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
201
194
|
none: false
|
202
|
-
requirements:
|
203
|
-
- -
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
|
206
|
-
segments:
|
195
|
+
requirements:
|
196
|
+
- - ! '>='
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '0'
|
199
|
+
segments:
|
207
200
|
- 0
|
208
|
-
|
209
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
|
+
hash: -928131621574859925
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
203
|
none: false
|
211
|
-
requirements:
|
212
|
-
- -
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
hash: 23
|
215
|
-
segments:
|
216
|
-
- 1
|
217
|
-
- 3
|
218
|
-
- 6
|
204
|
+
requirements:
|
205
|
+
- - ! '>='
|
206
|
+
- !ruby/object:Gem::Version
|
219
207
|
version: 1.3.6
|
220
208
|
requirements: []
|
221
|
-
|
222
209
|
rubyforge_project:
|
223
|
-
rubygems_version: 1.8.
|
210
|
+
rubygems_version: 1.8.23
|
224
211
|
signing_key:
|
225
212
|
specification_version: 3
|
226
213
|
summary: Amazon S3 tools to, e.g., list, copy, delete S3 files
|
227
214
|
test_files: []
|
228
|
-
|