capistrano-shortcuts 0.8.0 → 0.9.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28ffa91db5353ef11d5c177b27e57ab9bf2aba2f
4
- data.tar.gz: 885a333577df021845ed8ff8b85b9e975766c4ed
3
+ metadata.gz: a3fae278f97b55bda4394af772825bd5bbfcfcfa
4
+ data.tar.gz: 43742a39b2a9ff4df251928f605b4ac60469dd2c
5
5
  SHA512:
6
- metadata.gz: 3f2334c5ebd7192281a1ae1bc19676ea02dd4f4c56e961f621d42035db16c56cbc49f34c408fbd9d2140bb1a3cada8e104fe806054d0ff2796b7c36b1da9097f
7
- data.tar.gz: 990748390290f0ed99e2bd7f13d9fb1414ae68916aaa91f406da2c301411f4c2027ee7605d575d7282591e1fa9a14cb9544f43ebb66d9fa6217fe30684778442
6
+ metadata.gz: 9f572416f1b29dc6cf588f512dc80da277d098df256c0bcb710f3f44c89f7463ee0d326b2b568a2596d19d80a04f7a2b104f5035a19608bad931d290f5c8aac1
7
+ data.tar.gz: d3babfae15c8dbfeb50e632543d42538a2c0e1874f3e28d5edf3031e802c35e2d87d421f0c8dac49171fc00c4c4fbfe468de3c6e3a13c242c8cf12d8cc3e1a3a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-shortcuts (0.8.0)
4
+ capistrano-shortcuts (0.9.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -37,6 +37,15 @@ Pull a copy of the production database to local machine, run migrations to updat
37
37
 
38
38
  cap <environment> db:sync
39
39
 
40
+
41
+ Mysqldump the remote database to a timestamped (also remote) file. These are synonyms:
42
+
43
+ cap <environment> db:dump
44
+
45
+ ...or..
46
+
47
+ cap <environment> db:backup
48
+
40
49
  ## Config Files
41
50
 
42
51
  Push all config files listed in the :linked_files variable to the specified environment:
@@ -2,8 +2,7 @@ namespace :db do
2
2
 
3
3
  db_config = YAML::load_file('config/database.yml')
4
4
  local_rails_env = 'development'
5
- dump_file = "capistrano-dump.sql"
6
-
5
+ dump_file = "capistrano-dump-#{Time.now.to_i}.sql"
7
6
 
8
7
  task pull: [:dump_remote_db, :pull_db, :load_local_db]
9
8
  task push: [:dump_local_db, :push_db, :load_remote_db]
@@ -123,21 +122,8 @@ namespace :db do
123
122
 
124
123
  fetch(:production_protected)
125
124
  end
126
- # task :backup do
127
- # on roles(:db) do
128
- # dump_file = "cap-backup-#{Time.now.to_i}.sql"
129
- # execute("mysqldump " +
130
- # "-u #{db_config[fetch(:rails_env)]['username']} " +
131
- # "-h #{db_config[fetch(:rails_env)]['host']} " +
132
- # "-p " +
133
- # "#{db_config[fetch(:rails_env)]['database']} " +
134
- # "> #{dump_file}") do |ch, _, out|
135
- # if out =~ /^Enter password: /
136
- # ch.send_data "#{db_config[fetch(:rails_env)]['password']}\n"
137
- # else
138
- # puts out
139
- # end
140
- # end
141
- # end
142
- # end
125
+
126
+ task dump: :dump_remote_db
127
+ task backup: :dump
128
+
143
129
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Shortcuts
3
- VERSION = "0.8.0"
3
+ VERSION = "0.9.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-shortcuts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Gehman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-07 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler