obbistrano 1.0.93 → 1.0.94
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano_tasks.rb +3 -2
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -348,12 +348,13 @@ 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
|
+
role :new_server, new_server
|
352
|
+
mirror_setup
|
351
353
|
run "rsync -avzh . #{user}@#{new_server}: --exclude 'tmp/*'"
|
352
354
|
"#{databases}".each do |db|
|
353
355
|
run "mysqldump #{db} | ssh #{user}@#{new_server} mysql #{db}"
|
354
356
|
end
|
355
|
-
|
356
|
-
mirror_setup
|
357
|
+
|
357
358
|
end
|
358
359
|
|
359
360
|
task :mirror_setup, :roles => :new_server do
|
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.94"
|
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=
|