lib/chicken_soup/capabilities/unix.rb in chicken_soup-0.0.5 vs lib/chicken_soup/capabilities/unix.rb in chicken_soup-0.1.0
- old
+ new
@@ -1,7 +1,7 @@
######################################################################
-# COMMON *NIX TASKS #
+# UNIX TASKS #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
before "deploy:config:symlink", "deploy:config:create"
namespace :deploy do
@@ -55,21 +55,19 @@
namespace :root do
desc <<-DESC
[internal] Switches Capistrano to use the root user for all subsequent SSH actions.
It will prompt for the root user's password the first time it's needed.
- (If the Kompanee Bash environment has been installed, you will no longer
- be able to log in as root.)
DESC
task :use do
set_user_to("root")
end
end
namespace :manager do
desc <<-DESC
- Switches Capistrano to use the manager user for all subsequent SSH actions.
+ [internal] Switches Capistrano to use the manager user for all subsequent SSH actions.
It will prompt for the manager user's password the first time it's needed.
(If public key authentication is already installed, you will not be prompted.)
DESC
task :use do
@@ -77,11 +75,11 @@
end
end
namespace :deploy do
desc <<-DESC
- Switches Capistrano to use the deployment user for all subsequent SSH actions.
+ [internal] Switches Capistrano to use the deployment user for all subsequent SSH actions.
It will prompt for the deployment user's password the first time it's needed.
(If public key authentication is already installed, you will not be prompted.)
DESC
task :use do
@@ -91,14 +89,14 @@
end
end
end
######################################################################
-# UNIX ENVIRONMENT CHECKS #
+# UNIX CHECKS #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
- namespace :environment do
+ namespace :capabilities do
namespace :check do
desc <<-DESC
[internal] Checks to see if all necessary unix environment variables have been set up.
DESC
task :unix do
@@ -125,13 +123,13 @@
end
end
end
######################################################################
-# DEFAULT UNIX SERVER ENVIRONMENT SETUP #
+# UNIX SERVER DEFAULTS #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
- namespace :environment do
+ namespace :capabilities do
namespace :defaults do
desc "[internal] Sets intelligent defaults for unix server deployments."
task :unix do
_cset :deployment_username, "deploy"
_cset :manager_username, "manager"