rservicebus2 0.2.3 → 0.2.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ea0b8dd06a2280f3ca70bef921b34f4bad2c1d6a4c043a6accb119b83566940
|
4
|
+
data.tar.gz: b7607e7ed6a0fe7fbe935aa5b3cc2d27817973b33f96c5dda58d0651a1f17570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1963af8198779b9efabe33b85c236205fcdababb5a75e5b551d72073b9e4342818ac13878e2f533f295ca2e0a90be2767da641230d8382b15d4d485566fc9ac5
|
7
|
+
data.tar.gz: 06dc10763f2a56066405abbe7dff686d120d755f26d3ce8a3b6ca43152c31c8ca2f8826a51ec4fdb3a3d5bb836c4890770919b9cdd9ce603fb94eb4a710dbb0c
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'aws-sdk-dynamodb'
|
2
|
+
|
3
|
+
module RServiceBus2
|
4
|
+
# AppResourceAWSDynamoDb
|
5
|
+
class AppResourceAWSDynamoDb < AppResource
|
6
|
+
# rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
7
|
+
def connect(uri)
|
8
|
+
region = uri.host
|
9
|
+
|
10
|
+
aws = Aws::DynamoDB::Client.new(region: region)
|
11
|
+
puts "aws #{aws}"
|
12
|
+
aws
|
13
|
+
end
|
14
|
+
|
15
|
+
def finished
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -31,6 +31,9 @@ module RServiceBus2
|
|
31
31
|
when 'file'
|
32
32
|
require 'rservicebus2/appresource/file'
|
33
33
|
rm.add k.sub('RSB_', ''), AppResourceFile.new(host, uri)
|
34
|
+
when 'awsdynamodb'
|
35
|
+
require 'rservicebus2/appresource/awsdynamodb'
|
36
|
+
rm.add k.sub('RSB_', ''), AppResourceAWSDynamoDb.new(host, uri)
|
34
37
|
else
|
35
38
|
abort("Scheme, #{uri.scheme}, not recognised when configuring
|
36
39
|
app resource, #{k}=#{v}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rservicebus2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guy Irvine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uuidtools
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/rservicebus2.rb
|
105
105
|
- lib/rservicebus2/agent.rb
|
106
106
|
- lib/rservicebus2/appresource.rb
|
107
|
+
- lib/rservicebus2/appresource/awsdynamodb.rb
|
107
108
|
- lib/rservicebus2/appresource/dir.rb
|
108
109
|
- lib/rservicebus2/appresource/file.rb
|
109
110
|
- lib/rservicebus2/appresource/fluiddb.rb
|