bedrock-capistrano-mysql 0.0.3 → 0.0.4

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: 2fea0c56b19ca70fa66bf4029418c42407c2242c
4
- data.tar.gz: 575f1604cf50b06381cf1007cabbc5461f1cc306
3
+ metadata.gz: c599593e0b2715ebd83601323698b22a168b7ba0
4
+ data.tar.gz: 904b74cdd6f05e6c9c5ef981e4c9e30e1defe3b3
5
5
  SHA512:
6
- metadata.gz: 39f8c873915cdc0da16d845b0ffbf7f53dd2cbd75be28d3cf6664f833c45f9257ffd7f9b6be3b5fed2b86443618d51119ed9997540a43bd997dfa7c136828118
7
- data.tar.gz: 94fcc2229fea41057975070072ae8c63d5ff1cbe5d4f15817590810b0a553cd6582d904a4b0e8f7bca9b70c18f528a32e313a1e220717ba6a1bf9b4c757f0d0d
6
+ metadata.gz: cf9302fabba7095415221f0face69a321b05d34a65b9dec0be86330e3094f60ceb9047159e3ead69bd9bf7d2181ce2dd5a48d37e94eb5eb2e6ca8fc98b841735
7
+ data.tar.gz: 390f82f71f71b8ccd475de07c3fb1674463683d28b53189d7ef94d94d184640b8db5133a63f7228135273fe1d51552729fced3c01dadad9cb09f587359021cbd
data/README.md CHANGED
@@ -16,6 +16,13 @@ Or install it yourself as:
16
16
 
17
17
  $ gem install bedrock-capistrano-mysql
18
18
 
19
+ You need to add two lines to your local .env file:
20
+
21
+ ```
22
+ VAGRANT_PATH=~/path-to-bedrock-ansible
23
+ VAGRANT_SITE_NAME=site-name
24
+ ```
25
+
19
26
  You also need to add the line VAGRANT_PATH to your local .env file, pointing to your local `bedrock-ansible` project. You also to keep an .env-file for each environment. Meaning you need .env for your local environment, and one for each additional environment you want to work with – i.e. .env.staging, .env.production and so on...
20
27
 
21
28
  ## Usage
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'bedrock-capistrano-mysql'
6
- spec.version = '0.0.3'
6
+ spec.version = '0.0.4'
7
7
  spec.authors = ['Fredrik Sundström']
8
8
  spec.email = ['fredrik.sundstrom@norkay.se']
9
9
  spec.description = %q{MySQL tasks for roots/bedrock, using Capistrano 3.x}
@@ -46,7 +46,7 @@ namespace(:mysql) do
46
46
  desc "Change the urls in the MySQL backup file"
47
47
  task :change_url do
48
48
  on roles(:db) do
49
- system "cd ..; cd #{LOCAL_ENV['VAGRANT_PATH']}; vagrant ssh -c 'cd /srv/www/#{LOCAL_ENV['VAGRANT_APP_FOLDER']}/current; wp search-replace \'#{REMOTE_ENV['WP_HOME']}\' \'#{LOCAL_ENV['WP_HOME']}\''"
49
+ system "cd ..; cd #{LOCAL_ENV['VAGRANT_PATH']}; vagrant ssh -c 'cd /srv/www/#{LOCAL_ENV['VAGRANT_SITE_NAME']}/current; wp search-replace \'#{REMOTE_ENV['WP_HOME']}\' \'#{LOCAL_ENV['WP_HOME']}\''"
50
50
  puts "Changed urls!"
51
51
  end
52
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bedrock-capistrano-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fredrik Sundström