Sha256: 95571ba3c9d56df1c81a06b225e5303938dddedb5f6093532a87b63c08fe4ca2

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

# Copyright 2006-2008 by Mike Bailey. All rights reserved.
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
      
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
deprec-3.1.0.rc10 lib/deprec/recipes/ubuntu.rb
deprec-3.1.0.rc9 lib/deprec/recipes/ubuntu.rb
deprec-3.1.0.rc8 lib/deprec/recipes/ubuntu.rb
deprec-3.1.0.rc7 lib/deprec/recipes/ubuntu.rb
deprec-3.1.0.rc6 lib/deprec/recipes/ubuntu.rb
deprec-3.1.0.rc5 lib/deprec/recipes/ubuntu.rb
deprec-3.1.0.rc4 lib/deprec/recipes/ubuntu.rb
deprec-3.1.0.rc3 lib/deprec/cap/recipes/ubuntu.rb
deprec-3.1.0.rc2 lib/deprec/cap/recipes/ubuntu.rb
deprec-3.1.0.rc1 lib/deprec/cap/recipes/ubuntu.rb
deprec-2.2.3 lib/deprec/recipes/ubuntu.rb
deprec-2.2.2 lib/deprec/recipes/ubuntu.rb
deprec-2.2.1 lib/deprec/recipes/ubuntu.rb
deprec-2.2.0 lib/deprec/recipes/ubuntu.rb
deprec-2.1.19 lib/deprec/recipes/ubuntu.rb