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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 293fb770e23d71cd2b802ebc255924460d8caf55
4
- data.tar.gz: 85dce6c32c89b470cdbecd5979b4bd7f61b62813
3
+ metadata.gz: e44f5190ecab68c2e9b31e07b9c431922a75b21e
4
+ data.tar.gz: 4be42c40689f4aa9cf16d40bc1340b610d6b3d33
5
5
  SHA512:
6
- metadata.gz: 77f0dd79319c7cd62e8f70c2cd2fd335c732906901fe9999f8e35a5fae790d13c99d976f4d5fec45f265f4de5023ece9135a01bdd5e7aa1a4a3fa20b7f158e4d
7
- data.tar.gz: ad20cdd2bc1ee8d8d6eed94a7d063f9646c64340bf8b25b62be529ae0d6c598a55a4aefa325bdf8c6a0dad234c32831798499857f50e61267c90b79ae82080c6
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
- Coming soon
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
- queue_name = opts[:sqs_queue_url] and recreate_sqs queue_name
14
- bucket = opts[:bucket_id] and recreate_s3 bucket
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)
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Harness
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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-06-30 00:00:00.000000000 Z
11
+ date: 2014-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk