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.
Files changed (2) hide show
  1. data/lib/magic_recipes/sqlite.rb +7 -0
  2. metadata +1 -1
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: