48件ヒット
[1-48件を表示]
(0.095秒)
別のキーワード
ライブラリ
- rake (48)
キーワード
-
current
_ scope (12) -
in
_ namespace (12) -
synthesize
_ file _ task (12) - tasks (12)
検索結果
先頭4件
-
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (9208.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...します。
@param task_name タスク名を指定します。
@return 与えられたタスク名と同名のファイルが存在する場合は、ファイルタスクを作成して返します。
そうでない場合は nil を返します。
@raise RuntimeError タスクを合成......す。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO.write("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_... -
Rake
:: TaskManager # current _ scope -> Array (6308.0) -
現在のスコープを返します。
...現在のスコープを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.current_scope # => LL()
end
//}... -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (3208.0) -
与えられた名前の名前空間でブロックを評価します。
...名前空間でブロックを評価します。
@param name 名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
namespace :sample do
def hoge
puts "hoge"
end
end
task :test_rake_app do
task.application.in_namespace("sample")... -
Rake
:: TaskManager # tasks -> Array (3208.0) -
全てのタスクリストを返します。
...ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app2
task :test_rake_app1 do |task|
end
task :test_rake_app2 do |task|
pp task.application.tasks
# => [<Rake::Task default => [test_rake_app2]>,
# <Rake::Task test_rake_app1 => []>,
# <Rake::Task test_r...