magic_recipes 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magic_recipes/sqlite.rb +7 -0
- metadata +1 -1
data/lib/magic_recipes/sqlite.rb
CHANGED
@@ -8,6 +8,11 @@ module MagicRecipes
|
|
8
8
|
set_default :sqlite_db, "#{ rails_env.downcase.strip }"
|
9
9
|
|
10
10
|
namespace :sqlite do
|
11
|
+
|
12
|
+
desc "setup shared sqlite-folder"
|
13
|
+
task :setup_db do
|
14
|
+
run "mkdir #{deploy_to}/current/db"
|
15
|
+
end
|
11
16
|
|
12
17
|
desc "save current db"
|
13
18
|
task :save_db do
|
@@ -37,6 +42,8 @@ module MagicRecipes
|
|
37
42
|
|
38
43
|
end
|
39
44
|
|
45
|
+
after "deploy:setup", "sqlite:setup_db"
|
46
|
+
|
40
47
|
# eof
|
41
48
|
end
|
42
49
|
end
|