farmstead 0.0.78 → 0.0.79
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/load.rb +7 -9
- 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: 7d8f58ca2a64c5c6a1e67ad811f0ab3c727d53ae
|
4
|
+
data.tar.gz: 926749efd08b4be4acb3d03ec3636e20c6866974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a4aa5f1ae36e48c256326a149732ae23eaaea41ebeaac7d35dec7801d2f2bb60bceb5adfb21f4fc4b4e9e6360c8f0d1b6dd412469eed3d9b8a48bc619da58b9
|
7
|
+
data.tar.gz: 12efd8da4a2c2806ee71453acadd816a034cf2de74a28e5fe4a37b29695fc88a8bee3117ba225a8bb62d5c8b9c85f83426ec76f1902a59c34648a02297c98963
|
data/Gemfile.lock
CHANGED
@@ -11,15 +11,13 @@ module Farmstead
|
|
11
11
|
module Load
|
12
12
|
class Service < Farmstead::Service
|
13
13
|
def run
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
puts obj["result"]
|
22
|
-
my_module::load(obj["result"])
|
14
|
+
message = '{"module_name":"StopandShop","result":"Home - stop and shop"}'
|
15
|
+
obj = JSON.parse(message)
|
16
|
+
project_name = ENV["name"].capitalize
|
17
|
+
module_name = obj["module_name"]
|
18
|
+
my_module = Object.const_get "#{project_name}::#{module_name}"
|
19
|
+
puts obj["result"]
|
20
|
+
my_module::load(obj["result"])
|
23
21
|
end
|
24
22
|
|
25
23
|
def runs
|
data/lib/farmstead/version.rb
CHANGED