obbistrano 1.0.92 → 1.0.93
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 +20 -20
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -233,26 +233,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
233
233
|
run "cd #{deploy_to} && rm -f tmp/log/*"
|
234
234
|
end
|
235
235
|
|
236
|
-
# =============================================================================
|
237
|
-
# +MIGRATING+ APPLICATIONS
|
238
|
-
# =============================================================================
|
239
|
-
|
240
|
-
task :mirror do
|
241
|
-
config_check
|
242
|
-
print "==== Which server would you like to copy #{application} to? [Full Domain Name] "
|
243
|
-
new_server = STDIN.gets.strip
|
244
|
-
run "rsync -avzh . #{user}@#{new_server}: --exclude 'tmp/*'"
|
245
|
-
"#{databases}".each do |db|
|
246
|
-
run "mysqldump #{db} | ssh #{user}@#{new_server} mysql #{db}"
|
247
|
-
end
|
248
|
-
role :new_server, new_server
|
249
|
-
mirror_setup
|
250
|
-
end
|
251
|
-
|
252
|
-
task :mirror_setup, :roles => :new_server do
|
253
|
-
host.setup
|
254
|
-
end
|
255
|
-
|
256
236
|
|
257
237
|
end
|
258
238
|
|
@@ -359,6 +339,26 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
359
339
|
end
|
360
340
|
end
|
361
341
|
|
342
|
+
|
343
|
+
# =============================================================================
|
344
|
+
# +MIGRATING+ APPLICATIONS
|
345
|
+
# =============================================================================
|
346
|
+
|
347
|
+
task :mirror do
|
348
|
+
config_check
|
349
|
+
print "==== Which server would you like to copy #{application} to? [Full Domain Name] "
|
350
|
+
new_server = STDIN.gets.strip
|
351
|
+
run "rsync -avzh . #{user}@#{new_server}: --exclude 'tmp/*'"
|
352
|
+
"#{databases}".each do |db|
|
353
|
+
run "mysqldump #{db} | ssh #{user}@#{new_server} mysql #{db}"
|
354
|
+
end
|
355
|
+
role :new_server, new_server
|
356
|
+
mirror_setup
|
357
|
+
end
|
358
|
+
|
359
|
+
task :mirror_setup, :roles => :new_server do
|
360
|
+
host.setup
|
361
|
+
end
|
362
362
|
|
363
363
|
|
364
364
|
###### Private tasks for server operations #############
|
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.93"
|
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=
|