capobvious 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/capobvious.gemspec +1 -1
- data/lib/capistrano/ext/capobvious.rb +10 -2
- metadata +2 -2
data/capobvious.gemspec
CHANGED
|
@@ -46,7 +46,7 @@ set :db_archive_ext, "7z"
|
|
|
46
46
|
|
|
47
47
|
#after "deploy:symlink", "auto:run"
|
|
48
48
|
before "deploy:restart", "auto:run"
|
|
49
|
-
after "deploy:setup", "db:create", "nginx:conf", "install:p7zip"
|
|
49
|
+
#after "deploy:setup", "db:create", "nginx:conf", "install:p7zip"
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
namespace :auto do
|
|
@@ -60,9 +60,14 @@ namespace :auto do
|
|
|
60
60
|
end
|
|
61
61
|
bundle.install
|
|
62
62
|
if exists?(:auto_migrate) && fetch(:auto_migrate) == true
|
|
63
|
-
|
|
63
|
+
db.migrate
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
|
+
task :prepare do
|
|
67
|
+
db.create
|
|
68
|
+
nginx.conf
|
|
69
|
+
install.p7zip
|
|
70
|
+
end
|
|
66
71
|
end
|
|
67
72
|
namespace :create do
|
|
68
73
|
task :files do
|
|
@@ -92,6 +97,9 @@ namespace :db do
|
|
|
92
97
|
task :reset do
|
|
93
98
|
run "cd #{current_path} && bundle exec rake RAILS_ENV=#{rails_env} db:reset"
|
|
94
99
|
end
|
|
100
|
+
task :migrate do
|
|
101
|
+
run "cd #{current_path} && bundle exec rake RAILS_ENV=#{rails_env} db:migrate"
|
|
102
|
+
end
|
|
95
103
|
task :import do
|
|
96
104
|
file_name = "#{db_file_name}.#{db_archive_ext}"
|
|
97
105
|
file_path = "#{local_folder_path}/#{file_name}"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capobvious
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-02-
|
|
12
|
+
date: 2012-02-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Capfile that we use every day
|
|
15
15
|
email:
|