obbistrano 1.0.94 → 1.0.95
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano_tasks.rb +5 -3
- data/obbistrano.gemspec +1 -1
- metadata +2 -2
data/lib/obbistrano_tasks.rb
CHANGED
@@ -349,7 +349,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
349
349
|
print "==== Which server would you like to copy #{application} to? [Full Domain Name] "
|
350
350
|
new_server = STDIN.gets.strip
|
351
351
|
role :new_server, new_server
|
352
|
-
mirror_setup
|
352
|
+
mirror_setup, :hosts=>new_server
|
353
353
|
run "rsync -avzh . #{user}@#{new_server}: --exclude 'tmp/*'"
|
354
354
|
"#{databases}".each do |db|
|
355
355
|
run "mysqldump #{db} | ssh #{user}@#{new_server} mysql #{db}"
|
@@ -357,8 +357,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
357
357
|
|
358
358
|
end
|
359
359
|
|
360
|
-
task :mirror_setup
|
361
|
-
|
360
|
+
task :mirror_setup do
|
361
|
+
setup_user
|
362
|
+
vhost
|
363
|
+
setup_mysql
|
362
364
|
end
|
363
365
|
|
364
366
|
|
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.95"
|
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.
|
4
|
+
version: 1.0.95
|
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-07 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|