bukelatta 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/exe/bukelatta +15 -3
- data/lib/bukelatta/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3eb38c6f1afdae77f3f9561798b715821a114a6
|
4
|
+
data.tar.gz: 6b2a49f6be84ea6d19d569ae1029eab491a70623
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f72bb3992f60753ea69873ff7888b461f90700fa193b64883c1603355b81d0033bced1013b4ce8cf7100b93ed2376b7c4064e7a76381018cd02a8427a5e9e55
|
7
|
+
data.tar.gz: 0df17d35625c6fe93325a094e7bb89e9eb77c8bf29ccf34a5af8e467192a2cbca990bf845dcd5012dbf3c5610261f2c45073f1f65446f9b7bc9275d35ee989d9
|
data/README.md
CHANGED
data/exe/bukelatta
CHANGED
@@ -6,7 +6,8 @@ require 'optparse'
|
|
6
6
|
|
7
7
|
Version = Bukelatta::VERSION
|
8
8
|
|
9
|
-
|
9
|
+
OLD_DEFAULT_FILENAME = 'PolicyFile'
|
10
|
+
DEFAULT_FILENAME = 'Policyfile'
|
10
11
|
|
11
12
|
MAGIC_COMMENT = <<-EOS
|
12
13
|
# -*- mode: ruby -*-
|
@@ -143,8 +144,19 @@ def main(argv)
|
|
143
144
|
when :apply
|
144
145
|
file = options[:file]
|
145
146
|
|
146
|
-
|
147
|
-
|
147
|
+
# TODO: Remove OLD_DEFAULT_FILENAME support
|
148
|
+
if File.exist?(file)
|
149
|
+
if file == DEFAULT_FILENAME and Dir.glob(DEFAULT_FILENAME).first == OLD_DEFAULT_FILENAME
|
150
|
+
file = OLD_DEFAULT_FILENAME
|
151
|
+
logger.warn(%!"#{OLD_DEFAULT_FILENAME}" is deprecated. Please use "#{DEFAULT_FILENAME}"!.yellow)
|
152
|
+
end
|
153
|
+
else
|
154
|
+
if file == DEFAULT_FILENAME and File.exist?(OLD_DEFAULT_FILENAME)
|
155
|
+
file = OLD_DEFAULT_FILENAME
|
156
|
+
logger.warn(%!"#{OLD_DEFAULT_FILENAME}" is deprecated. Please use "#{DEFAULT_FILENAME}"!.yellow)
|
157
|
+
else
|
158
|
+
raise "No PolicyFile found (looking for: #{file})"
|
159
|
+
end
|
148
160
|
end
|
149
161
|
|
150
162
|
message = "Apply `#{file}` to Bucket Policy"
|
data/lib/bukelatta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bukelatta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winebarrel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|