farmstead 0.0.67 → 0.0.68
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/farmstead/pipeline/extract.rb +10 -0
- data/lib/farmstead/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c50d83de14a670a1b0acbe2764cf71232508e9ca
|
4
|
+
data.tar.gz: 4e6e4e13597caee497b5c668f37967d4bdab4094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f546f79bdda08bc9949622ad3ac385d1738d11286657058bf6b0cd56905d4d57f5f6a62f7ebe5037553923932fae8f8d4fa7cb9a94bbe2d2b1572ccf1baf345
|
7
|
+
data.tar.gz: d8856f390a10ed9c2ec3cef79c571cb00f6b9ab8e02db9b6ca466d34a8546e263a6c1faaad1a21c35599877587eb3f597d099db1dd16c513c03f0a4fcfe2aba6
|
data/Gemfile.lock
CHANGED
@@ -11,6 +11,16 @@ module Farmstead
|
|
11
11
|
module Extract
|
12
12
|
class Service < Farmstead::Service
|
13
13
|
def run
|
14
|
+
message = "StopandShop"
|
15
|
+
puts "Received: #{message}"
|
16
|
+
module_name = message
|
17
|
+
my_module = Object.const_get "<%= ENV['name'].capitalize %>::#{module_name}"
|
18
|
+
result = my_module::extract
|
19
|
+
puts result.inspect
|
20
|
+
Farmstead::DB.insert_test(result)
|
21
|
+
end
|
22
|
+
|
23
|
+
def runs
|
14
24
|
@consumer.subscribe("Field")
|
15
25
|
trap('TERM') { @consumer.stop }
|
16
26
|
@consumer.each_message do |message|
|
data/lib/farmstead/version.rb
CHANGED