obbistrano 1.1.12 → 1.1.13
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 +18 -17
- data/obbistrano.gemspec +1 -1
- metadata +2 -2
data/lib/obbistrano_tasks.rb
CHANGED
@@ -380,10 +380,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
380
380
|
with_user("root", "#{root_pass}") do
|
381
381
|
begin
|
382
382
|
run "cat /etc/fedora-release"
|
383
|
-
server_type
|
383
|
+
set :server_type, "fedora"
|
384
384
|
rescue
|
385
385
|
run "cat /etc/debian_version"
|
386
|
-
server_type
|
386
|
+
set :server_type, "ubuntu"
|
387
387
|
end
|
388
388
|
end
|
389
389
|
logger.level = 2
|
@@ -461,22 +461,23 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
461
461
|
|
462
462
|
end
|
463
463
|
|
464
|
-
task :mirror do
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
464
|
+
task :mirror do
|
465
|
+
print "==== Which server would you like to copy #{application} to? [Full Domain Name] "
|
466
|
+
new_server = STDIN.gets.strip
|
467
|
+
old_roles = roles[:web]
|
468
|
+
roles[:web].clear
|
469
|
+
role :web, new_server
|
470
|
+
host.setup
|
471
|
+
roles[:web].clear
|
472
|
+
roles[:web] = old_roles
|
473
|
+
puts roles[:web]
|
474
|
+
run "ls"
|
475
|
+
run "rsync -avz -e ssh ./ #{user}@#{new_server}:/home/#{user}/ --exclude 'tmp/*'"
|
476
|
+
"#{databases}".each do |db|
|
477
|
+
run "mysqldump #{db} | ssh #{user}@#{new_server} mysql #{db}"
|
478
|
+
end
|
478
479
|
|
479
|
-
end
|
480
|
+
end
|
480
481
|
|
481
482
|
end
|
482
483
|
|
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.1.
|
5
|
+
s.version = "1.1.13"
|
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.1.
|
4
|
+
version: 1.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Riley
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-11-
|
13
|
+
date: 2009-11-10 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|