farmstead 0.0.76 → 0.0.77
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/db.rb +10 -0
- data/lib/farmstead/pipeline/load.rb +1 -1
- 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: f8d9cf814e57468301326aabaa67dc8d3a54dfce
|
4
|
+
data.tar.gz: fa9f3d9e375bd29fad966368992e31bd6d0c515c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33cc0b4ba3347c5288643e8b98c145787a9a169afc914a9bf4b418cf066ea3269672bc12ad6043350601a12add56537144d911e45bc0715ebc4f20ed2fa7acb9
|
7
|
+
data.tar.gz: c56b21060b141d1520b1f976671e7ed6bc1187053e7c5f35b219a88b99f1d6779930994342c550802830361e9ab7b99c8a5d58ac37a29c0ff6d249fe93f91d55
|
data/Gemfile.lock
CHANGED
data/lib/farmstead/db.rb
CHANGED
@@ -50,6 +50,16 @@ module Farmstead
|
|
50
50
|
ds.insert(array)
|
51
51
|
end
|
52
52
|
|
53
|
+
def self.create_table(table, hash)
|
54
|
+
self.pull_variables
|
55
|
+
@@DB.create_table? [":#{table}"] do
|
56
|
+
#primary_key(:id) if hash[:primary_key]
|
57
|
+
String(:name)
|
58
|
+
String(:type)
|
59
|
+
String(:module)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
53
63
|
# Insert an array of values into a table
|
54
64
|
def self.insert_test(result)
|
55
65
|
self.pull_variables
|
@@ -21,7 +21,7 @@ module Farmstead
|
|
21
21
|
module_name = obj["module_name"]
|
22
22
|
my_module = Object.const_get "#{project_name}::#{module_name}"
|
23
23
|
puts obj["result"]
|
24
|
-
|
24
|
+
result = my_module::load(obj["result"])
|
25
25
|
@consumer.mark_message_as_processed(message)
|
26
26
|
end
|
27
27
|
end
|
data/lib/farmstead/version.rb
CHANGED