farmstead 0.0.41 → 0.0.42
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/db.rb +3 -2
- data/lib/farmstead/scaffold/exec.sh.erb +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: 6d37e7dbfd1bdfb01c36d292ab4f68ea766cd16c
|
4
|
+
data.tar.gz: 7eebc85c065b78657f42a954c5559a2abffe0ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b14bb1b3cb06ee007bd2e6e6327e254890753cfb5ec6c1af3fe16e2608a9333852cfb665fe698158dd498d2fdb794ffe6ddc722462c1fe311c140f4a11798d5
|
7
|
+
data.tar.gz: 866e4dd886ec9d6fb6ab0fd9c3be93ea839ea71a032d6b5f332e4829e0550945c54cbb9f60d44f6ed53c3a5fd6e3272d11875a6ff4d4109c3a69566be9a39bf1
|
data/Gemfile.lock
CHANGED
data/lib/farmstead/api/v1.rb
CHANGED
data/lib/farmstead/db.rb
CHANGED
@@ -10,9 +10,10 @@ module Farmstead
|
|
10
10
|
@@DB = Sequel.connect(adapter: "mysql2", host: @@mysql_host, database: @@mysql_database, user: @@mysql_user, password: @@mysql_password)
|
11
11
|
end
|
12
12
|
|
13
|
-
def self.add_source
|
13
|
+
def self.add_source(name,type)
|
14
14
|
self.pull_variables
|
15
|
-
|
15
|
+
ds = @@DB[:sources]
|
16
|
+
ds.insert(:name => name, :type => type)
|
16
17
|
end
|
17
18
|
|
18
19
|
def self.setup
|
data/lib/farmstead/version.rb
CHANGED