Sha256: fd9977f61ddaaae4ecbcb5b7ca610fd0d0e98f56e1a5d279aeee8010ddb73ac9

Contents?: true

Size: 951 Bytes

Versions: 31

Compression:

Stored size: 951 Bytes

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
        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

31 entries across 31 versions & 2 rubygems

Version Path
deprec-2.0.11 lib/deprec/recipes/ubuntu.rb
deprec-2.0.13 lib/deprec/recipes/ubuntu.rb
deprec-2.0.10 lib/deprec/recipes/ubuntu.rb
deprec-2.0.2 lib/deprec/recipes/ubuntu.rb
deprec-2.0.3 lib/deprec/recipes/ubuntu.rb
deprec-2.0.4 lib/deprec/recipes/ubuntu.rb
deprec-2.0.5 lib/deprec/recipes/ubuntu.rb
deprec-2.0.8 lib/deprec/recipes/ubuntu.rb
deprec-2.0.7 lib/deprec/recipes/ubuntu.rb
deprec-2.0.9 lib/deprec/recipes/ubuntu.rb
deprec-2.0.6 lib/deprec/recipes/ubuntu.rb