farmstead 0.0.42 → 0.0.43
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/api/v1.rb +3 -2
- data/lib/farmstead/scaffold/exec.sh.erb +3 -2
- 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: fcdc5231080791c955c1005d68e94c2f1ba2265e
|
4
|
+
data.tar.gz: 823997c88ada7c6d7797586d4c33cb8e615168ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: befbf6ac0d5df2078abd6a08d735211337062f6f25d3bf2c8905e07f215b5587d840b824cba8cac45159ac3dc213e1405473b3b80961719e56a216af239696d0
|
7
|
+
data.tar.gz: 1c245c327e38d6151e2d99c6b80567e6c2db891928d89774d3c2fcefa967c9757f4d3effcd10410a8dd5b73f2aece9372b0ddf34d59493d86778484019b38bbc
|
data/Gemfile.lock
CHANGED
data/lib/farmstead/api/v1.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "sinatra/base"
|
2
2
|
require "sinatra/namespace"
|
3
|
+
require "json"
|
3
4
|
|
4
5
|
module Sinatra
|
5
6
|
module V1
|
@@ -12,8 +13,8 @@ module Sinatra
|
|
12
13
|
end
|
13
14
|
|
14
15
|
put "/source" do
|
15
|
-
JSON.parse(
|
16
|
-
|
16
|
+
payload = JSON.parse(request.body.read)
|
17
|
+
Farmstead::DB.add_source(payload)
|
17
18
|
end
|
18
19
|
end
|
19
20
|
end
|
@@ -22,8 +22,9 @@ docker-compose up -d mysql zookeeper > /dev/null 2>&1
|
|
22
22
|
echo "Sleeping"
|
23
23
|
sleep 10
|
24
24
|
|
25
|
+
echo "Starting everything else"
|
26
|
+
docker-compose up -d > /dev/null 2>&1
|
27
|
+
|
25
28
|
echo "Create database tables"
|
26
29
|
docker-compose exec manage farmstead db setup
|
27
30
|
|
28
|
-
echo "Starting everything else"
|
29
|
-
docker-compose up -d > /dev/null 2>&1
|
data/lib/farmstead/version.rb
CHANGED