るりまサーチ

最速Rubyリファレンスマニュアル検索!
912件ヒット [101-200件を表示] (0.087秒)

別のキーワード

  1. rake rakefile
  2. rake load_rakefile
  3. application rakefile
  4. application load_rakefile

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Rake::TaskManager#[](task_name, scopes = nil) -> Rake::Task (11144.0)

与えられたタスク名にマッチするタスクを検索します。

...す。

@param task_name タスク名を指定します。

@param scopes スコープを指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
Rake
.application["test_rake_app"] # => <Rake::Task test_rake_app => []>
end
//}...

Rake::TaskManager#define_task(task_class, *args) { ... } -> Rake::Task (11138.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#lookup(task_name, initial_scope = nil) -> Rake::Task | nil (11138.0)

与えられたタスク名にマッチするタスクを検索します。

...名を指定します。

@param initial_scope 検索するスコープを指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app

task :test_rake_app do |task|
task.application.lookup("test_rake_app") # => <Rake::Task test_rake_app => []>
end
//}...

Rake::FileList#existing -> Rake::FileList (11136.0)

自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含む Rake::FileList を返します。

...ステムに存在するファイルのみを
含む Rake::FileList を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2....

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (11136.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

...各要素に String#ext を適用した新しい Rake::FileList を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb"...

絞り込み条件を変える

Rake::FileList#pathmap(spec = nil) -> Rake::FileList (11136.0)

各要素に String#pathmap を適用した新しい Rake::FileList を返します。

...各要素に String#pathmap を適用した新しい Rake::FileList を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.pathmap("%n") # => ["test1",...

Rake::Application#init(app_name = &#39;rake&#39;) (11132.0)

コマンドラインオプションとアプリケーション名を初期化します。

...ンドラインオプションとアプリケーション名を初期化します。

//emlist[例][ruby]{
# Rakefile での記載例とする

task default: :test
task :test

Rake
.application.name # => "rake"
Rake
.application.init("MyApp") # => ["default"]
Rake
.application.name # => "MyApp"
//}...

Rake::TaskManager#synthesize_file_task(task_name) -> Rake::FileTask | nil (11126.0)

与えられたタスク名をもとにファイルタスクを合成します。

...//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_file =...

Rake::FileTask#timestamp -> Time | Rake::LateTime (11120.0)

ファイルタスクのタイムスタンプを返します。

...ファイルタスクのタイムスタンプを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: "test.txt"
file "test.txt" do |task|
Rake
.application.options.build_all = false
task.timestamp # => #<Rake::LateTime:0x2ba58f0>
end
//}...
<< < 1 2 3 4 ... > >>