Skip to content

Commit

Permalink
convert tabs to 2 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jan 29, 2009
1 parent 8f10931 commit 049446d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/capistrano/ext/slicehost.rb
Expand Up @@ -2,6 +2,6 @@
abort "Requires Capistrano 2"
end

Dir["#{File.dirname(__FILE__)}/slicehost/*.rb"].each { |lib|
Capistrano::Configuration.instance.load {load(lib)}
Dir["#{File.dirname(__FILE__)}/slicehost/*.rb"].each { |lib|
Capistrano::Configuration.instance.load {load(lib)}
}
2 changes: 1 addition & 1 deletion lib/capistrano/ext/slicehost/apache.rb
Expand Up @@ -81,7 +81,7 @@
put render("vhost", binding), application
sudo "mv #{application} /etc/apache2/sites-available/#{application}"
end

desc "Install Apache"
task :install, :roles => :web do
sudo "aptitude install -y apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert"
Expand Down
10 changes: 5 additions & 5 deletions lib/capistrano/ext/slicehost/aptitude.rb
Expand Up @@ -74,17 +74,17 @@
Updates software packages and creates "a solid base for the 'meat' of the \
server". This task should be run only once when you are first setting up your \
new slice.
For set another language different from en_GB.UTF-8, just set the LANG \
environment variable to your favorite language.
Ex. LANG="gl_ES.UTF-8"; cap aptitude:setup
For set another language different from en_GB.UTF-8, just set the LANG \
environment variable to your favorite language.
Ex. LANG="gl_ES.UTF-8"; cap aptitude:setup
See "Update", "locales", "Upgrade" and "build essentials" sections on \
http://articles.slicehost.com/2007/11/6/ubuntu-gutsy-setup-page-2
DESC
task :setup, :roles => :app do
update
language = ENV["LANG"] || "en_GB.UTF-8"
language = ENV["LANG"] || "en_GB.UTF-8"
sudo "locale-gen language"
sudo "/usr/sbin/update-locale LANG=#{language}"
safe_upgrade
Expand Down
4 changes: 2 additions & 2 deletions lib/capistrano/ext/slicehost/disk.rb
Expand Up @@ -3,10 +3,10 @@
task :free, :roles => :files do
run "df -h /"
end

desc "Show free memory"
task :memory, :roles => :files do
run "free -m"
end

end
2 changes: 1 addition & 1 deletion lib/capistrano/ext/slicehost/gems.rb
Expand Up @@ -21,7 +21,7 @@
task :update, :roles => :app do
sudo "gem update"
end

desc "Update gem system on remote server"
task :update_system, :roles => :app do
sudo "gem update --system"
Expand Down
14 changes: 7 additions & 7 deletions lib/capistrano/ext/slicehost/ssh.rb
Expand Up @@ -32,13 +32,13 @@
run "chown -R #{user}:#{user} ~/.ssh"
run "chmod 700 ~/.ssh"

authorized_keys = ssh_options[:keys].collect { |key|
begin
File.read("#{key}.pub")
rescue Errno::ENOENT => e
end
}.join("\n")
authorized_keys = ssh_options[:keys].collect { |key|
begin
File.read("#{key}.pub")
rescue Errno::ENOENT => e
end

}.join("\n")
put authorized_keys, "./.ssh/authorized_keys", :mode => 0600
end

Expand Down

0 comments on commit 049446d

Please sign in to comment.