Type:
Class

Create a packaging task that will package the project into distributable files (e.g zip archive or tar files).

The PackageTask will create the following targets:

:package

Create all the requested package files.

:clobber_package

Delete all the package files. This target is automatically added to the main clobber target.

:repackage

Rebuild the package files from scratch, even if they are not out of date.

package_dir/name-version.tgz”

Create a gzipped tar package (if need_tar is true).

package_dir/name-version.tar.gz”

Create a gzipped tar package (if need_tar_gz is true).

package_dir/name-version.tar.bz2”

Create a bzip2'd tar package (if need_tar_bz2 is true).

package_dir/name-version.zip”

Create a zip package archive (if need_zip is true).

Example:

1
2
3
4
Rake::PackageTask.new("rake", "1.2.3") do |p|
  p.need_tar = true
  p.package_files.include("lib   /*.rb")
end
tgz_file
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

tgz_file() Instance Public methods

2025-01-10 15:47:30
package_name
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

package_name() Instance Public methods

2025-01-10 15:47:30
package_dir_path
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

package_dir_path() Instance Public methods

2025-01-10 15:47:30
new
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

new(name=nil, version=nil) Class Public methods Create a Package

2025-01-10 15:47:30
init
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

init(name, version) Instance Public methods Initialization that bypasses the

2025-01-10 15:47:30
zip_file
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

zip_file() Instance Public methods

2025-01-10 15:47:30
tar_bz2_file
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

tar_bz2_file() Instance Public methods

2025-01-10 15:47:30
tar_gz_file
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

tar_gz_file() Instance Public methods

2025-01-10 15:47:30
define
  • References/Ruby on Rails/Ruby/Classes/Rake/Rake::PackageTask

define() Instance Public methods Create the tasks defined by this task library

2025-01-10 15:47:30