48件ヒット
[1-48件を表示]
(0.048秒)
ライブラリ
- rake (48)
キーワード
-
create
_ rule (12) -
define
_ task (12) -
last
_ description (12) -
last
_ description= (12)
検索結果
先頭4件
-
Rake
:: TaskManager # last _ description=(description) (6201.0) -
最新の詳細説明をセットします。
...の記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
task.application.last_description # => "test2"
task.application.last_description = "test3"
task.application.last_description # => "test3"
end
desc "test2"
task :test_rake_app2 do |task|
end
//}... -
Rake
:: TaskManager # define _ task(task _ class , *args) { . . . } -> Rake :: Task (6101.0) -
タスクを定義します。
...s タスククラスを指定します。
@param args タスクに渡すパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.define_task(Rake::Task, :t) # => <Rake::Task t => []>
end
//}... -
Rake
:: TaskManager # last _ description -> String (3101.0) -
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
...詳細説明を追跡するためのメソッドです。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end
desc "test2"
task :test_rake_app2 do |task|
end
//}... -
Rake
:: TaskManager # create _ rule(*args) { . . . } (7.0) -
与えられたパラメータに従ってルールを作成します。
...に与えるパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
rule = Rake.application.create_rule '.txt' => '.md' do |t|
"#{t}"
end
p rule # => 0x0000558dd2e32d20 /path/to/Rakefile:5>
end
//}...