Sha256: 32302c46474de0c3d9e5db92c72c8d4abe76218ac780ea2afaa4ad10218d8ec7

Contents?: true

Size: 1.68 KB

Versions: 13

Compression:

Stored size: 1.68 KB

Contents

# Copyright 2006-2008 by Mike Bailey. All rights reserved.
Capistrano::Configuration.instance(:must_exist).load do 
  namespace :deprec do 
    namespace :utils do
              
        SRC_PACKAGES[:daemonize] = {
          :filename => 'daemonize-1.5.2.tar.gz',   
          :md5sum => "c016f1a17f03ec976873d0a283a1a038  daemonize-1.5.2.tar.gz", 
          :dir => 'daemonize-1.5.2',  
          :url => "http://www.clapper.org/software/daemonize/daemonize-1.5.2.tar.gz",
          :unpack => "tar zxf daemonize-1.5.2.tar.gz;",
          :configure => %w(
            ./configure
            ;
            ).reject{|arg| arg.match '#'}.join(' '),
          :make => 'make;',
          :install => 'make install;'
        }
        
        namespace :daemonize do
        
          desc "Install daemonize"
          task :install do
            deprec2.download_src(SRC_PACKAGES[:daemonize], src_dir)
            deprec2.install_from_src(SRC_PACKAGES[:daemonize], src_dir)
          end
          
        end
      
        desc "Install some useful network utils"
        task :net do
          apps = %w(lynx nmap netcat telnet dnsutils rsync curl wget)
          apt.install( {:base => apps}, :stable )
        end
        
        desc "Install some useful mail utils"
        task :mail do
          apps = %w(mailx mutt)
          apt.install( {:base => apps}, :stable )
        end
        
        desc "Install some useful utils"
        task :other do
          apps = %w(vim-full tree)
          apt.install( {:base => apps}, :stable )
        end
        
        desc "Install handy utils"
        task :handy do
          net
          mail
          other
        end
        
    end 
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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