plant 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plant/version.rb +1 -1
- data/lib/tasks/plant_tasks.rake +2 -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: 9c70bd22dc0374ce3b64dc53d5bc65dfd3e9a493
|
4
|
+
data.tar.gz: 5ca6c5dc04e4544cad061fe65c0a10773793c915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 215ff468742525b1ac33f3bfde887ce3855b4b00aa7029207f2a9a6d9e081c6643f6b94b87d65d63712877164445240cd5ca605d898c8134a42733c654627f69
|
7
|
+
data.tar.gz: 0badb9c78e6b841735528b403f6b16de700d33151580253f2fd31922cc99bc05d5d64477fcf2054bb58dda59e69c5cef50a72655adf8ee6998a28807f4140fe0
|
data/lib/plant/version.rb
CHANGED
data/lib/tasks/plant_tasks.rake
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
namespace :plant do
|
2
2
|
desc 'Puts the content from the YAML files into the database'
|
3
3
|
task seed: :environment do
|
4
|
-
puts 'Planting those seeds'
|
5
4
|
count = 0
|
6
5
|
Plant::Utils.load_all_yaml_files.each do |full_node, value|
|
7
6
|
content_obj = Plant::Content.find_or_initialize_by(node_id: full_node)
|
@@ -11,4 +10,6 @@ namespace :plant do
|
|
11
10
|
end
|
12
11
|
puts "Planted #{count} seeds."
|
13
12
|
end
|
13
|
+
|
14
|
+
task seeds: :seed
|
14
15
|
end
|