Sha256: 15fe2718943e66d49d8cd7c2ce944552e4d78b8d77ccce644d357641333669b6
Contents?: true
Size: 625 Bytes
Versions: 21
Compression:
Stored size: 625 Bytes
Contents
require "zip/zip" task :pack do exclude = [ 'tmp/', 'config/services/', 'config/database.yml', 'test/', 'spec/', 'doc/' ] builds = Pathname.new("tmp/builds/") zip_file = builds.join(File.read(Application.root.join "VERSION") + '.zip') FileUtils.mkdir_p builds File.delete zip_file if File.exist? zip_file Zip::ZipFile.open(zip_file, Zip::ZipFile::CREATE) do |zipfile| `git ls-files`.split($/).each do |filename| next unless File.file?(filename) next if exclude.map{|x| filename.start_with?(x)}.include?(true) zipfile.add(filename, filename) end end end
Version data entries
21 entries across 21 versions & 1 rubygems