Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > rake/packagetaskライブラリ > Rake::PackageTaskクラス

class Rake::PackageTask

クラスの継承リスト: Rake::PackageTask < Rake::TaskLib < Rake::Cloneable < Object < Kernel < BasicObject

要約

配布するパッケージ (zip, tar, etc...) を作成するためのタスクを定義するクラスです。

特異メソッド

定義 説明
new(name = nil, version = nil) {|t| ... } -> Rake::PackageTask

自身を初期化してタスクを定義します。

インスタンスメソッド

定義 説明
define -> self

タスクを定義します。

init(name, version)

自身の各属性にデフォルト値をセットします。

name -> String

バージョン情報を含まないパッケージの名前を返します。

name=(name)

バージョン情報を含まないパッケージの名前をセットします。

need_tar -> bool

この値が真である場合は gzip した tar ファイル (tgz) を作成します。 デフォルトは偽です。

need_tar=(flag)

gzip した tar ファイル (tgz) を作成するかどうかを設定します。

need_tar_bz2 -> bool

この値が真である場合は bzip2 した tar ファイル (tar.bz2) を作成します。 デフォルトは偽です。

need_tar_bz2=(flag)

bzip2 した tar ファイル (tar.bz2) を作成するかどうかを設定します。

need_tar_gz -> bool

この値が真である場合は gzip した tar ファイル (tar.gz) を作成します。 デフォルトは偽です。

need_tar_gz=(flag)

gzip した tar ファイル (tar.gz) を作成するかどうかを設定します。

need_zip -> bool

この値が真である場合は zip ファイルを作成します。 デフォルトは偽です。

need_zip=(flag)

zip ファイル (tgz) を作成するかどうかを設定します。

package_dir -> String

パッケージに入れるファイルを保存するディレクトリ名を返します。

package_dir=(dirname)

パッケージに入れるファイルを保存するディレクトリ名をセットします。

package_dir_path -> String

パッケージに含むファイルを配置するディレクトリを返します。

package_files -> Rake::FileList

パッケージに含むファイルリストを返します。

package_files=(file_list)

パッケージに含むファイルリストを設定します。

package_name -> String

バージョン情報を含むパッケージ名を返します。

tar_bz2_file -> String

tar.bz2 用のファイル名を返します。

tar_command -> String

tar コマンドとして使用するコマンドを返します。

tar_command=(command)

tar コマンドとして使用するコマンドを設定します。

tar_gz_file -> String

tar.gz 用のファイル名を返します。

tgz_file -> String

tgz 用のファイル名を返します。

version -> String

作成するパッケージのバージョンを表す文字列を返します。

version=(str)

作成するパッケージのバージョンをセットします。

zip_command -> String

zip コマンドとして使用するコマンドを返します。

zip_command=(command)

zip コマンドとして使用するコマンドを設定します。

zip_file -> String

zip ファイル用のファイル名を返します。

継承したメソッド

! != == === =~ __id__ __send__ _dump class clone dclone display enum_for eql? equal? extend freeze frozen? hash initialize initialize_copy inspect instance_eval instance_exec instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? marshal_dump marshal_load method method_missing methods must_be must_be_close_to must_be_empty must_be_instance_of must_be_kind_of must_be_nil must_be_same_as must_be_within_epsilon must_equal must_include must_match must_raise must_respond_to must_send must_throw nil? pretty_inspect pretty_print pretty_print_cycle pretty_print_inspect pretty_print_instance_variables private_methods protected_methods public_methods remove_instance_variable respond_to? respond_to_missing? singleton_class singleton_method_added singleton_method_removed singleton_method_undefined singleton_methods taint tainted? tap to_a to_ary to_hash to_int to_io to_proc to_regexp to_s to_str to_yaml to_yaml_properties to_yaml_style trust untaint untrust untrusted? wont_be wont_be_close_to wont_be_empty wont_be_instance_of wont_be_kind_of wont_be_nil wont_be_same_as wont_be_within_epsilon wont_equal wont_include wont_match wont_respond_to