obbistrano 1.0.81 → 1.0.82

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.
@@ -326,11 +326,11 @@ Capistrano::Configuration.instance(:must_exist).load do
326
326
  namespace :setup do
327
327
  desc "Sets up the server with a user, home directory and mysql login."
328
328
  task :default do
329
- server.setup
329
+ host.setup
330
330
  end
331
331
  end
332
332
 
333
- namespace :server do
333
+ namespace :host do
334
334
 
335
335
 
336
336
  desc "Sets up the server with a user, home directory and mysql login."
@@ -411,7 +411,7 @@ Capistrano::Configuration.instance(:must_exist).load do
411
411
 
412
412
  desc "Ubuntu: Sets up a user and home directory"
413
413
  task :setup_user do
414
- server.needs_root
414
+ host.needs_root
415
415
  set :user_to_add, "#{user}"
416
416
  set :passwd_to_add, "#{password}"
417
417
  with_user("root", "#{root_pass}") do
@@ -422,8 +422,8 @@ Capistrano::Configuration.instance(:must_exist).load do
422
422
 
423
423
  desc "Ubuntu: Creates Apache virtual host file"
424
424
  task :vhost do
425
- server.config_check
426
- needs_root
425
+ host.config_check
426
+ host.needs_root
427
427
  with_user("root", "#{root_pass}") do
428
428
  public_ip = ""
429
429
  run "ifconfig eth0 | grep inet | awk '{print $2}' | sed 's/addr://'" do |_, _, public_ip| end
@@ -442,8 +442,8 @@ Capistrano::Configuration.instance(:must_exist).load do
442
442
 
443
443
  desc "Ubuntu: Restarts the Apache Server"
444
444
  task :restart do
445
- config_check
446
- needs_root
445
+ host.config_check
446
+ host.needs_root
447
447
  with_user("root", "#{root_pass}") do
448
448
  run "/etc/init.d/apache2 restart"
449
449
  end
@@ -455,7 +455,7 @@ Capistrano::Configuration.instance(:must_exist).load do
455
455
 
456
456
  desc "Fedora: Sets up a user and home directory"
457
457
  task :setup_user do
458
- server.needs_root
458
+ host.needs_root
459
459
  set :user_to_add, "#{user}"
460
460
  set :passwd_to_add, "#{password}"
461
461
  with_user("root", "#{root_pass}") do
@@ -466,8 +466,8 @@ Capistrano::Configuration.instance(:must_exist).load do
466
466
 
467
467
  desc "Fedora: Creates an Apache virtual host file"
468
468
  task :vhost do
469
- config_check
470
- needs_root
469
+ host.config_check
470
+ host.needs_root
471
471
  with_user("root", "#{root_pass}") do
472
472
  public_ip = ""
473
473
  run "ifconfig eth0 | grep inet | awk '{print $2}' | sed 's/addr://'" do |_, _, public_ip| end
@@ -486,8 +486,8 @@ Capistrano::Configuration.instance(:must_exist).load do
486
486
 
487
487
  desc "Fedora: Restarts the Apache Server. Requires root password to access."
488
488
  task :restart do
489
- server.config_check
490
- server.needs_root
489
+ host.config_check
490
+ host.needs_root
491
491
  with_user("root", "#{root_pass}") do
492
492
  run "/etc/rc.d/init.d/httpd restart"
493
493
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.0.81"
5
+ s.version = "1.0.82"
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.81
4
+ version: 1.0.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley