rake/packaging.rb
changeset 9 143e61e24c08
parent 8 308f7dc97753
child 10 389e66b0d38e
equal deleted inserted replaced
8:308f7dc97753 9:143e61e24c08
     1 # 
       
     2 # Packaging Rake Tasks
       
     3 # 
       
     4 # 
       
     5 
       
     6 require 'rake/packagetask'
       
     7 require 'rake/gempackagetask'
       
     8 
       
     9 Rake::GemPackageTask.new( GEMSPEC ) do |task|
       
    10 	task.gem_spec = GEMSPEC
       
    11 	task.need_tar = false
       
    12 	task.need_tar_gz = true
       
    13 	task.need_tar_bz2 = true
       
    14 	task.need_zip = true
       
    15 end
       
    16 
       
    17 
       
    18 ### Task: install
       
    19 task :install_gem => [:package] do
       
    20 	$stderr.puts 
       
    21 	installer = Gem::Installer.new( %{pkg/#{PKG_FILE_NAME}.gem} )
       
    22 	installer.install
       
    23 end
       
    24 
       
    25 ### Task: uninstall
       
    26 task :uninstall_gem => [:clean] do
       
    27 	uninstaller = Gem::Uninstaller.new( PKG_FILE_NAME )
       
    28 	uninstaller.uninstall
       
    29 end
       
    30 
       
    31 
       
    32