obbistrano 1.0.98 → 1.0.99

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.
@@ -348,9 +348,12 @@ Capistrano::Configuration.instance(:must_exist).load do
348
348
  config_check
349
349
  print "==== Which server would you like to copy #{application} to? [Full Domain Name] "
350
350
  new_server = STDIN.gets.strip
351
+ old_server = "#{host}"
352
+ ENV['HOSTS'] = new_server
351
353
  setup_user
352
354
  vhost
353
355
  setup_mysql
356
+ ENV['HOSTS'] = old_server
354
357
  run "rsync -avzh . #{user}@#{new_server}: --exclude 'tmp/*'"
355
358
  "#{databases}".each do |db|
356
359
  run "mysqldump #{db} | ssh #{user}@#{new_server} mysql #{db}"
data/obbistrano.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.0.98"
5
+ s.version = "1.0.99"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.date = Time.now
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obbistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.98
4
+ version: 1.0.99
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley