bukelatta 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bukelatta/client.rb +4 -3
- data/lib/bukelatta/dsl/converter.rb +1 -1
- data/lib/bukelatta/exporter.rb +2 -4
- data/lib/bukelatta/ext/aws_s3_bucket_ext.rb +0 -2
- 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: 005ea3970ee3ba921330b6e457083e18a2ec38d9
|
4
|
+
data.tar.gz: cf9246ccfc936b93252da04040ccc09f14e84b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d033b02851be6048214666af8d47232552650d7561dcefb53689c9fd938b3629f12b8a5b1304f1606d06444e278de2c0a7d0f63eefb7428cc9f881893dea653
|
7
|
+
data.tar.gz: 73f1a33da49a7abf9fa4fb4488ac324190c61562b96693c13c67b75d55829e55c03ef09b5ce15abe2e6f625b1a1fc22ffb9b98aad914ef60be7048d9a743f5d8
|
data/lib/bukelatta/client.rb
CHANGED
@@ -6,11 +6,12 @@ class Bukelatta::Client
|
|
6
6
|
@options = options
|
7
7
|
@client = @options[:client] || Aws::S3::Client.new
|
8
8
|
@resource = Aws::S3::Resource.new(client: @client)
|
9
|
-
@driver = Bukelatta::Driver.new(@client, options)
|
9
|
+
@driver = Bukelatta::Driver.new(@client, @options)
|
10
|
+
@exporter = Bukelatta::Exporter.new(@client, @options)
|
10
11
|
end
|
11
12
|
|
12
13
|
def export
|
13
|
-
|
14
|
+
@exporter.export
|
14
15
|
end
|
15
16
|
|
16
17
|
def apply(file)
|
@@ -21,7 +22,7 @@ class Bukelatta::Client
|
|
21
22
|
|
22
23
|
def walk(file)
|
23
24
|
expected = load_file(file)
|
24
|
-
actual =
|
25
|
+
actual = @exporter.export
|
25
26
|
|
26
27
|
updated = walk_buckets(expected, actual)
|
27
28
|
|
data/lib/bukelatta/exporter.rb
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
class Bukelatta::Exporter
|
2
2
|
include Bukelatta::Utils::Helper
|
3
3
|
|
4
|
-
def self.export(client, options = {})
|
5
|
-
self.new(client, options).export
|
6
|
-
end
|
7
|
-
|
8
4
|
def initialize(client, options = {})
|
9
5
|
@client = client
|
10
6
|
@options = options
|
@@ -15,6 +11,8 @@ class Bukelatta::Exporter
|
|
15
11
|
export_buckets
|
16
12
|
end
|
17
13
|
|
14
|
+
private
|
15
|
+
|
18
16
|
def export_buckets
|
19
17
|
result = {}
|
20
18
|
buckets = @resource.buckets
|
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.3
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|