base = File.expand_path(File.dirname(__FILE__)) require 'rubygems' #require 'archive/tar/minitar' require 'localized_helpers' GemHelpers.update_gem_path "#{base}/../common/gems/installed" require 'yaml' require 'fileutils' require 'find' module Build def self.package pwd = Dir.pwd project_name = File.basename(pwd) File.open("#{project_name}.tar", 'wb') { |tar| Archive::Tar::Minitar.pack("#{pwd}", tar) } end def self.clean pwd = Dir.pwd project_name = File.basename(pwd) full = File.expand_path(pwd) FileUtils.rm_rf "#{full}/common/gems/installed/" FileUtils.mkdir "#{full}/common/gems/installed/" end end