obbistrano 1.0.82 → 1.0.83
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 +16 -8
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -334,13 +334,15 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
334
334
|
|
335
335
|
|
336
336
|
desc "Sets up the server with a user, home directory and mysql login."
|
337
|
-
task :
|
337
|
+
task :setup do
|
338
|
+
config_check
|
339
|
+
try_login
|
338
340
|
"#{server_type}".setup
|
339
341
|
end
|
340
342
|
|
341
343
|
desc "Restarts the web server."
|
342
344
|
task :restart do
|
343
|
-
|
345
|
+
server_type.restart
|
344
346
|
end
|
345
347
|
|
346
348
|
|
@@ -409,7 +411,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
409
411
|
|
410
412
|
namespace :ubuntu do
|
411
413
|
|
412
|
-
|
414
|
+
task :setup do
|
415
|
+
vhost
|
416
|
+
setup_user
|
417
|
+
host.setup_mysql
|
418
|
+
end
|
419
|
+
|
413
420
|
task :setup_user do
|
414
421
|
host.needs_root
|
415
422
|
set :user_to_add, "#{user}"
|
@@ -420,7 +427,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
420
427
|
end
|
421
428
|
end
|
422
429
|
|
423
|
-
desc "Ubuntu: Creates Apache virtual host file"
|
424
430
|
task :vhost do
|
425
431
|
host.config_check
|
426
432
|
host.needs_root
|
@@ -440,7 +446,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
440
446
|
server.restart
|
441
447
|
end
|
442
448
|
|
443
|
-
desc "Ubuntu: Restarts the Apache Server"
|
444
449
|
task :restart do
|
445
450
|
host.config_check
|
446
451
|
host.needs_root
|
@@ -453,7 +458,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
453
458
|
|
454
459
|
namespace :fedora do
|
455
460
|
|
456
|
-
|
461
|
+
task :setup do
|
462
|
+
vhost
|
463
|
+
setup_user
|
464
|
+
host.setup_mysql
|
465
|
+
end
|
466
|
+
|
457
467
|
task :setup_user do
|
458
468
|
host.needs_root
|
459
469
|
set :user_to_add, "#{user}"
|
@@ -464,7 +474,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
464
474
|
end
|
465
475
|
end
|
466
476
|
|
467
|
-
desc "Fedora: Creates an Apache virtual host file"
|
468
477
|
task :vhost do
|
469
478
|
host.config_check
|
470
479
|
host.needs_root
|
@@ -484,7 +493,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
484
493
|
restart
|
485
494
|
end
|
486
495
|
|
487
|
-
desc "Fedora: Restarts the Apache Server. Requires root password to access."
|
488
496
|
task :restart do
|
489
497
|
host.config_check
|
490
498
|
host.needs_root
|
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.83"
|
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=
|