lesli 5.0.6 → 5.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lesli/version.rb +1 -1
- data/lib/tasks/lesli/db.rake +12 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2704c5aebd8bf510927680809b5a07a8aed66dfa7312f06ac0d1ff96f5dd3def
|
4
|
+
data.tar.gz: 90d7a87d6951a54b937cf34b7988e769b7c00fd54ed3a32affb4bda7a37bcd9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54244d7cf06034e093ceb38fb8c65b8264a9ccf4cfa28fcd1048b2e6cbd4524fa8574d645e36edf5020661e3f7deaeb65e733db47fef26cb5d362cbb3f13690b
|
7
|
+
data.tar.gz: 906817b0770d8ac461d5e4a4261b539eabfdba0edb3136581f74b96002d0ceee5b308d487cfefba3a72ab7212463ed727e29f27aa1bc2b5bc7080ab91588c607
|
data/lib/lesli/version.rb
CHANGED
data/lib/tasks/lesli/db.rake
CHANGED
@@ -37,21 +37,27 @@ namespace :lesli do
|
|
37
37
|
desc "Drop, build, migrate & seed Lesli database (development only)"
|
38
38
|
task :reset => :environment do |task, args|
|
39
39
|
reset()
|
40
|
+
start()
|
41
|
+
seed()
|
42
|
+
setup()
|
40
43
|
end
|
41
44
|
|
42
45
|
desc "Build, migrate & seed Lesli database"
|
43
|
-
task :
|
46
|
+
task :start => :environment do |task, args|
|
47
|
+
start()
|
48
|
+
seed()
|
44
49
|
setup()
|
45
50
|
end
|
46
51
|
|
47
52
|
desc "Build, migrate & seed Lesli database"
|
48
53
|
task :seed => :environment do |task, args|
|
49
54
|
seed()
|
55
|
+
setup()
|
50
56
|
end
|
51
57
|
|
52
58
|
desc "Build, migrate & seed Lesli database"
|
53
|
-
task :
|
54
|
-
|
59
|
+
task :setup => :environment do |task, args|
|
60
|
+
setup()
|
55
61
|
end
|
56
62
|
end
|
57
63
|
|
@@ -65,23 +71,19 @@ namespace :lesli do
|
|
65
71
|
L2.m("Reset Lesli database for development")
|
66
72
|
|
67
73
|
Rake::Task['db:drop'].invoke
|
68
|
-
|
69
|
-
setup()
|
70
74
|
end
|
71
75
|
|
72
76
|
# Build, migrate & seed database (development only)
|
73
|
-
def
|
77
|
+
def start
|
74
78
|
|
75
79
|
# do not execute this task if we are at production level
|
76
80
|
return if Rails.env.production?
|
77
81
|
|
78
82
|
# print a message to let the users show the action running
|
79
|
-
L2.m("
|
83
|
+
L2.m("Start Lesli database for development")
|
80
84
|
|
81
85
|
Rake::Task['db:create'].invoke
|
82
86
|
Rake::Task['db:migrate'].invoke
|
83
|
-
|
84
|
-
seed()
|
85
87
|
end
|
86
88
|
|
87
89
|
# Seed database (development only)
|
@@ -102,11 +104,9 @@ namespace :lesli do
|
|
102
104
|
LesliHelp::Engine.load_seed if defined?(LesliHelp)
|
103
105
|
LesliAudit::Engine.load_seed if defined?(LesliAudit)
|
104
106
|
LesliLetter::Engine.load_seed if defined?(LesliLetter)
|
105
|
-
|
106
|
-
start()
|
107
107
|
end
|
108
108
|
|
109
|
-
def
|
109
|
+
def setup
|
110
110
|
|
111
111
|
# do not execute this task if we are at production level
|
112
112
|
return if Rails.env.production?
|