alephant-harness 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/README.md +15 -1
- data/lib/alephant/harness/setup.rb +6 -8
- data/lib/alephant/harness/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: e44f5190ecab68c2e9b31e07b9c431922a75b21e
|
4
|
+
data.tar.gz: 4be42c40689f4aa9cf16d40bc1340b610d6b3d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef13d337d3af7d18a86662e7ef1142a902aab924dcb852781255feb28d36204d4a11deea19268cd98b9a691c38c81bdd8ffdba8b206465a842d9b098744c5f2b
|
7
|
+
data.tar.gz: 2729ab1692a3e49849199bbdb597deb4204292a590b18d5daa49c034c55d9946eee49c84b6b7fb4299893211f58136254a3b95574c72375435e9f7b3a5b3ec74
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
Provides supporting classes for running the alephant framework locally.
|
4
4
|
|
5
|
+
Alephant::Harness::Setup.configure tears down and sets up the Alephant framework's AWS resources.
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
@@ -18,8 +20,20 @@ Or install it yourself as:
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
21
|
-
|
23
|
+
Add the following code to your Alephant-based project's Rakefile, with your own configuration:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'alephant/harness'
|
27
|
+
|
28
|
+
config = { :sqs_queue_url => 'your-sqs-queue-url',
|
29
|
+
:bucket_id => 'your-bucket-id',
|
30
|
+
:lookup_table_name => 'your-lookup-table-name',
|
31
|
+
:sequencer_table_name => 'your-sequencer-table-name' }
|
22
32
|
|
33
|
+
task :harness do
|
34
|
+
Alephant::Harness::Setup.configure(config, ENV)
|
35
|
+
end
|
36
|
+
```
|
23
37
|
|
24
38
|
## Contributing
|
25
39
|
|
@@ -10,19 +10,17 @@ module Alephant
|
|
10
10
|
def self.configure(opts = {}, env = nil)
|
11
11
|
AWS.configure(env)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
opts[:queues].each do |queue_name|
|
14
|
+
recreate_sqs queue_name
|
15
|
+
end
|
16
|
+
|
17
|
+
bucket = opts[:bucket_id] and recreate_s3 bucket
|
15
18
|
|
16
|
-
tables
|
19
|
+
tables = {
|
17
20
|
:lookup => opts[:lookup_table_name],
|
18
21
|
:sequencer => opts[:sequencer_table_name],
|
19
22
|
} and recreate_dynamo_db tables
|
20
23
|
|
21
|
-
#recreate_sqs queue_name
|
22
|
-
|
23
|
-
#recreate_s3 bucket
|
24
|
-
|
25
|
-
#recreate_dynamo_db tables
|
26
24
|
end
|
27
25
|
|
28
26
|
def self.recreate_sqs(queue_name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alephant-harness
|
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
|
- Steven Jack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|