capistrano-shortcuts 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/capistrano/shortcuts/tasks/deploy_database.rake +5 -2
- data/lib/capistrano/shortcuts/version.rb +1 -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: 9013af032f3b5bf35417397388819b1675044e5b
|
|
4
|
+
data.tar.gz: ef8a5ff9d741326842bb01abef8cbbcf5adf33f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 824b2979f951aad98089840f7af147fc28bca558d7a47ae94ad0f5abb5b36797ba1a8c1994fc2ccb3e9cef66245bd6644c126429d1076ec8d9839d140987519e
|
|
7
|
+
data.tar.gz: c6de0aeed3965dc8e31fef26b80bb7528c840d06f61cad746e98f19aaf8ba866e91b406d72c44af18ce38811cf2e79637449b4fb02969b2023e0f885a961cb47
|
data/Gemfile.lock
CHANGED
|
@@ -47,8 +47,11 @@ namespace :db do
|
|
|
47
47
|
task :push_db do
|
|
48
48
|
|
|
49
49
|
if freeze_production and fetch(:rails_env) == 'production'
|
|
50
|
-
|
|
51
|
-
"
|
|
50
|
+
run_locally do
|
|
51
|
+
execute("rm #{dump_file}.gz")
|
|
52
|
+
raise "By default, I won't push the local database to production. To override this protection add this to deploy.rb:\n" +
|
|
53
|
+
"set :production_protected, false'"
|
|
54
|
+
end
|
|
52
55
|
end
|
|
53
56
|
run_locally do
|
|
54
57
|
if db_config[fetch(:rails_env)]['host'].nil?
|