Sha256: a751f39b417ae6ed908bf9e950961e6cd9dc0921ef0061b3a5df658c3f34af62
Contents?: true
Size: 1.31 KB
Versions: 4
Compression:
Stored size: 1.31 KB
Contents
require 'deprec-core' Capistrano::Configuration.instance(:must_exist).load do namespace :deprec do namespace :ubuntu do desc "apt-get update. Resynchronize the package index files from their sources." task :update do apt.update end desc "apt-get upgrade. Install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list.." task :upgrade do apt.upgrade end desc "reboot the server" task :restart do # we like standard names reboot end # Because I end up typing it... task :reboot do sudo "reboot" end desc "shut down the server" task :shutdown do sudo "shutdown -h now" end desc "Remove locks from aborted apt-get command." task :remove_locks do sudo "rm /var/lib/apt/lists/lock" # XXX There's one more - add it! end desc "Remove consolekit" task :remove_consolekit, :roles => :ubuntu do run "#{sudo} apt-get remove consolekit" run "#{sudo} apt-get remove dbus" end desc "Remove crap that doesn't belong on a server" task :trim, :roles => :ubuntu do remove_consolekit end end end end
Version data entries
4 entries across 4 versions & 1 rubygems