obbistrano 1.0.96 → 1.0.97
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 +6 -6
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
|
@@ -406,7 +406,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
406
406
|
|
|
407
407
|
namespace :ubuntu do
|
|
408
408
|
|
|
409
|
-
task :setup_user
|
|
409
|
+
task :setup_user do
|
|
410
410
|
set :user_to_add, "#{user}"
|
|
411
411
|
set :passwd_to_add, "#{password}"
|
|
412
412
|
with_user("root", "#{root_pass}") do
|
|
@@ -415,7 +415,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
415
415
|
end
|
|
416
416
|
end
|
|
417
417
|
|
|
418
|
-
task :vhost
|
|
418
|
+
task :vhost do
|
|
419
419
|
with_user("root", "#{root_pass}") do
|
|
420
420
|
public_ip = ""
|
|
421
421
|
run "ifconfig eth0 | grep inet | awk '{print $2}' | sed 's/addr://'" do |_, _, public_ip| end
|
|
@@ -431,7 +431,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
431
431
|
end
|
|
432
432
|
end
|
|
433
433
|
|
|
434
|
-
task :restart
|
|
434
|
+
task :restart do
|
|
435
435
|
with_user("root", "#{root_pass}") do
|
|
436
436
|
run "/etc/init.d/apache2 restart"
|
|
437
437
|
end
|
|
@@ -441,7 +441,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
441
441
|
|
|
442
442
|
namespace :fedora do
|
|
443
443
|
|
|
444
|
-
task :setup_user
|
|
444
|
+
task :setup_user do
|
|
445
445
|
set :user_to_add, "#{user}"
|
|
446
446
|
set :passwd_to_add, "#{password}"
|
|
447
447
|
with_user("root", "#{root_pass}") do
|
|
@@ -450,7 +450,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
450
450
|
end
|
|
451
451
|
end
|
|
452
452
|
|
|
453
|
-
task :vhost
|
|
453
|
+
task :vhost do
|
|
454
454
|
with_user("root", "#{root_pass}") do
|
|
455
455
|
public_ip = ""
|
|
456
456
|
run "ifconfig eth0 | grep inet | awk '{print $2}' | sed 's/addr://'" do |_, _, public_ip| end
|
|
@@ -466,7 +466,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
466
466
|
end
|
|
467
467
|
end
|
|
468
468
|
|
|
469
|
-
task :restart
|
|
469
|
+
task :restart do
|
|
470
470
|
with_user("root", "#{root_pass}") do
|
|
471
471
|
run "/etc/rc.d/init.d/httpd restart"
|
|
472
472
|
end
|
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.97"
|
|
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=
|