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.
- data/lib/obbistrano_tasks.rb +3 -0
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
|
@@ -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.
|
|
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=
|