105件ヒット
[1-100件を表示]
(0.135秒)
種類
- インスタンスメソッド (88)
- 特異メソッド (17)
ライブラリ
- rake (33)
-
rake
/ packagetask (66) - shell (6)
クラス
-
Rake
:: InvocationChain (22) -
Rake
:: PackageTask (66) -
Rake
:: TaskArguments (11) - Shell (6)
キーワード
- append (11)
- member? (11)
- name (11)
-
need
_ zip (11) -
package
_ dir (11) -
package
_ dir _ path (11) -
package
_ files (11) -
with
_ defaults (11)
検索結果
先頭5件
-
Rake
:: PackageTask . new(name = nil , version = nil) {|t| . . . } -> Rake :: PackageTask (21513.0) -
自身を初期化してタスクを定義します。
...@param version パッケージのバージョンを指定します。
':noversion' というシンボルを指定するとバージョン情報をセットしません。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample",......ckage_task|
package_task.package_dir = "./pkg"
package_task.package_files.include("lib/**/*")
end
# rake -T を実行すると以下になる
# => rake clobber_package # Remove package products
# rake package # Build all the packages
# rake repackage # Force a rebuild of......the package files
//}... -
Shell
. new(pwd = Dir . pwd , umask = nil) -> Shell (18401.0) -
プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.
...トを生成します.
@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir.pwd が使用されます。
@param umask ファイル作成の際に用いられる umask を使用します。... -
Rake
:: PackageTask # package _ files -> Rake :: FileList (9306.0) -
パッケージに含むファイルリストを返します。
...//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_files # => []
package_task.package_files.include("*.rb")
package_task.pac......kage_files # => ["test1.rb", "test2.rb"]
end
//}... -
Rake
:: PackageTask # package _ dir _ path -> String (9212.0) -
パッケージに含むファイルを配置するディレクトリを返します。
...パッケージに含むファイルを配置するディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_dir_path # => "pkg/sample-1.0.0"
end
//}... -
Rake
:: PackageTask # need _ zip -> bool (9206.0) -
この値が真である場合は zip ファイルを作成します。 デフォルトは偽です。
...この値が真である場合は zip ファイルを作成します。
デフォルトは偽です。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_zip # => false
end
//}... -
Rake
:: PackageTask # package _ dir -> String (9206.0) -
パッケージに入れるファイルを保存するディレクトリ名を返します。
...パッケージに入れるファイルを保存するディレクトリ名を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_dir # => "pkg"
end
//}... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (9206.0) -
パラメータにデフォルト値をセットします。
...mlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
arguments.wit... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (6406.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...Rake::InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test......_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}... -
Rake
:: InvocationChain # member?(task _ name) -> bool (6206.0) -
与えられたタスク名が自身に含まれる場合は真を返します。 そうでない場合は偽を返します。
...m task_name タスク名を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.member?("task_a") # => true
invocation......_chain.member?("task_b") # => false
end
//}... -
Rake
:: PackageTask # name -> String (3206.0) -
バージョン情報を含まないパッケージの名前を返します。
...バージョン情報を含まないパッケージの名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.name # => "sample"
end
//}...