obbistrano 1.0.99 → 1.0.100

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.
@@ -348,12 +348,14 @@ 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
+ old_roles = roles[:web]
352
+ roles[:web].clear
353
+ role :web, new_server
353
354
  setup_user
354
355
  vhost
355
356
  setup_mysql
356
- ENV['HOSTS'] = old_server
357
+ roles[:web].clear
358
+ roles[:web] = old_roles
357
359
  run "rsync -avzh . #{user}@#{new_server}: --exclude 'tmp/*'"
358
360
  "#{databases}".each do |db|
359
361
  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.99"
5
+ s.version = "1.0.100"
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.99
4
+ version: 1.0.100
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-07 00:00:00 +00:00
13
+ date: 2009-11-08 00:00:00 +00:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency