buckler 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +66 -0
- data/.ruby-version +1 -0
- data/.travis.yml +8 -0
- data/.yardopts +4 -0
- data/CONTRIBUTING.md +29 -0
- data/Gemfile +2 -0
- data/LICENSE.md +9 -0
- data/README.md +96 -0
- data/Rakefile +16 -0
- data/bin/bucket +18 -0
- data/buckler.gemspec +31 -0
- data/lib/buckler.rb +29 -0
- data/lib/buckler/actions.rb +90 -0
- data/lib/buckler/actions/create_bucket.rb +53 -0
- data/lib/buckler/actions/destroy_bucket.rb +22 -0
- data/lib/buckler/actions/empty_bucket.rb +16 -0
- data/lib/buckler/actions/get_bucket.rb +0 -0
- data/lib/buckler/actions/list_buckets.rb +21 -0
- data/lib/buckler/actions/list_regions.rb +23 -0
- data/lib/buckler/actions/sync_buckets.rb +106 -0
- data/lib/buckler/aws.rb +81 -0
- data/lib/buckler/commands.rb +271 -0
- data/lib/buckler/heroku.rb +41 -0
- data/lib/buckler/logging.rb +19 -0
- data/lib/buckler/monkey_patches.rb +19 -0
- data/lib/buckler/regions.rb +23 -0
- data/lib/buckler/strings.rb +24 -0
- data/lib/buckler/thread_dispatch.rb +48 -0
- data/lib/buckler/version.rb +14 -0
- data/test/buckler_test.rb +80 -0
- data/test/integration/bad_options_test.rb +25 -0
- data/test/integration/create_bucket_test.rb +27 -0
- data/test/integration/destroy_bucket_test.rb +21 -0
- data/test/integration/empty_bucket_test.rb +25 -0
- data/test/integration/list_buckets_test.rb +20 -0
- data/test/integration/list_regions_test.rb +15 -0
- data/test/integration/sync_buckets_test.rb +30 -0
- data/test/run.rb +23 -0
- metadata +192 -0
data/test/run.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require "securerandom"
|
2
|
+
require "dotenv"
|
3
|
+
require "aws-sdk"
|
4
|
+
require "active_support/core_ext/object"
|
5
|
+
require "active_support/core_ext/string"
|
6
|
+
require "active_support/core_ext/array"
|
7
|
+
require "active_support/core_ext/enumerable"
|
8
|
+
|
9
|
+
require "minitest"
|
10
|
+
require "minitest/pride"
|
11
|
+
require "minitest/autorun"
|
12
|
+
|
13
|
+
# Filter out Minitest backtrace while allowing backtrace from
|
14
|
+
# other libraries to be shown
|
15
|
+
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
16
|
+
|
17
|
+
# Load AWS credentials from a .env file in this directory
|
18
|
+
Dotenv.load
|
19
|
+
|
20
|
+
require "#{BUCKLER_ROOT}/test/buckler_test"
|
21
|
+
Dir["#{BUCKLER_ROOT}/test/integration/*.rb"].each do |test_file|
|
22
|
+
require test_file
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: buckler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Corey Csuhta
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws-sdk
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dotenv
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: cri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.7'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '11.2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '11.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.7'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.7'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.6'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.6'
|
111
|
+
description: Buckler is a Ruby command line tool for performing common actions on
|
112
|
+
Amazon S3 buckets. It’s more do-what-you-want and less overwhelmingly powerful than
|
113
|
+
the AWS CLI. It’s also designed to work with Heroku applications.
|
114
|
+
email:
|
115
|
+
executables:
|
116
|
+
- bucket
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- ".gitignore"
|
121
|
+
- ".ruby-version"
|
122
|
+
- ".travis.yml"
|
123
|
+
- ".yardopts"
|
124
|
+
- CONTRIBUTING.md
|
125
|
+
- Gemfile
|
126
|
+
- LICENSE.md
|
127
|
+
- README.md
|
128
|
+
- Rakefile
|
129
|
+
- bin/bucket
|
130
|
+
- buckler.gemspec
|
131
|
+
- lib/buckler.rb
|
132
|
+
- lib/buckler/actions.rb
|
133
|
+
- lib/buckler/actions/create_bucket.rb
|
134
|
+
- lib/buckler/actions/destroy_bucket.rb
|
135
|
+
- lib/buckler/actions/empty_bucket.rb
|
136
|
+
- lib/buckler/actions/get_bucket.rb
|
137
|
+
- lib/buckler/actions/list_buckets.rb
|
138
|
+
- lib/buckler/actions/list_regions.rb
|
139
|
+
- lib/buckler/actions/sync_buckets.rb
|
140
|
+
- lib/buckler/aws.rb
|
141
|
+
- lib/buckler/commands.rb
|
142
|
+
- lib/buckler/heroku.rb
|
143
|
+
- lib/buckler/logging.rb
|
144
|
+
- lib/buckler/monkey_patches.rb
|
145
|
+
- lib/buckler/regions.rb
|
146
|
+
- lib/buckler/strings.rb
|
147
|
+
- lib/buckler/thread_dispatch.rb
|
148
|
+
- lib/buckler/version.rb
|
149
|
+
- test/buckler_test.rb
|
150
|
+
- test/integration/bad_options_test.rb
|
151
|
+
- test/integration/create_bucket_test.rb
|
152
|
+
- test/integration/destroy_bucket_test.rb
|
153
|
+
- test/integration/empty_bucket_test.rb
|
154
|
+
- test/integration/list_buckets_test.rb
|
155
|
+
- test/integration/list_regions_test.rb
|
156
|
+
- test/integration/sync_buckets_test.rb
|
157
|
+
- test/run.rb
|
158
|
+
homepage: https://github.com/csuhta/buckler
|
159
|
+
licenses:
|
160
|
+
- MIT
|
161
|
+
metadata: {}
|
162
|
+
post_install_message:
|
163
|
+
rdoc_options: []
|
164
|
+
require_paths:
|
165
|
+
- lib
|
166
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 2.2.3
|
171
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - ">="
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
requirements: []
|
177
|
+
rubyforge_project:
|
178
|
+
rubygems_version: 2.6.4
|
179
|
+
signing_key:
|
180
|
+
specification_version: 4
|
181
|
+
summary: Perform common actions on S3 buckets from the command line
|
182
|
+
test_files:
|
183
|
+
- test/buckler_test.rb
|
184
|
+
- test/integration/bad_options_test.rb
|
185
|
+
- test/integration/create_bucket_test.rb
|
186
|
+
- test/integration/destroy_bucket_test.rb
|
187
|
+
- test/integration/empty_bucket_test.rb
|
188
|
+
- test/integration/list_buckets_test.rb
|
189
|
+
- test/integration/list_regions_test.rb
|
190
|
+
- test/integration/sync_buckets_test.rb
|
191
|
+
- test/run.rb
|
192
|
+
has_rdoc:
|