obbistrano 1.0.100 → 1.0.101
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano_tasks.rb +2 -5
- data/obbistrano.gemspec +1 -1
- metadata +2 -2
data/lib/obbistrano_tasks.rb
CHANGED
@@ -279,7 +279,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
279
279
|
|
280
280
|
desc "Sets up the server with a user, home directory and mysql login."
|
281
281
|
task :setup do
|
282
|
-
config_check
|
283
282
|
setup_user
|
284
283
|
vhost
|
285
284
|
setup_mysql
|
@@ -323,6 +322,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
323
322
|
|
324
323
|
desc "Creates a MySQL user and database"
|
325
324
|
task :setup_mysql do
|
325
|
+
config_check
|
326
326
|
needs_root
|
327
327
|
set :user_to_add, "#{user}"
|
328
328
|
set :passwd_to_add, "#{password}"
|
@@ -345,15 +345,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
345
345
|
# =============================================================================
|
346
346
|
|
347
347
|
task :mirror do
|
348
|
-
config_check
|
349
348
|
print "==== Which server would you like to copy #{application} to? [Full Domain Name] "
|
350
349
|
new_server = STDIN.gets.strip
|
351
350
|
old_roles = roles[:web]
|
352
351
|
roles[:web].clear
|
353
352
|
role :web, new_server
|
354
|
-
|
355
|
-
vhost
|
356
|
-
setup_mysql
|
353
|
+
setup
|
357
354
|
roles[:web].clear
|
358
355
|
roles[:web] = old_roles
|
359
356
|
run "rsync -avzh . #{user}@#{new_server}: --exclude 'tmp/*'"
|
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.101"
|
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.101
|
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-09 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|