るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.021秒)
トップページ > クエリ:rakefile[x] > クエリ:top_level[x]

別のキーワード

  1. frame top
  2. irb/frame top
  3. rake top_level
  4. rake top_level_tasks
  5. application top_level

ライブラリ

クラス

モジュール

キーワード

検索結果

Rake::Application#top_level (18113.0)

Rake アプリケーションに与えられたトップレベルのタスク (コマンドラインで指定されたタスク) を実行します。

...たトップレベルのタスク
(コマンドラインで指定されたタスク) を実行します。

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

task default: :test1
task :test1
task :test2 do
puts "test2"
end

# rake test2 で実行
Rake.application.top_level

# => "test2"
//}...

Rake::Application#top_level_tasks -> Array (6113.0)

コマンドラインで指定されたタスクのリストを返します。

...コマンドラインで指定されたタスクのリストを返します。

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

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

Rake.application -> Rake::Application (48.0)

現在の Rake アプリケーションを返します。

...現在の Rake アプリケーションを返します。

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

require 'pp'

task default: :test_rake_app
task :test_rake_app do
pp Rake.application
end

# => #<Rake::Application:0x31b0f18
# @default_loader=#<Rake::DefaultLoader:0x31b0c78>,
#...
...lib"], trace_output=#<IO:<STDERR>>>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile="rakefile",
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks=
# {"default"=><Rake::Task default => [test_r...

Rake.application=(app) (42.0)

現在の Rake アプリケーションをセットします。

...ake アプリケーションをセットします。

@param app Rake::Application のインスタンスを指定します。

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

require 'pp'

task default: :test_rake_app
task :test_rake_app do
app = Rake::Application.new
app.tty_output = tru...
...alse>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile=nil,
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks={},
# @terminal_columns=0,
# @top_level_tasks=[],
# @tty_output=true>
//}...

Rake::Application#run (12.0)

Rake アプリケーションを実行します。

...下の 3 ステップを実行します。

* コマンドラインオプションを初期化します。Rake::Application#init
* タスクを定義します。Rake::Application#load_rakefile
* コマンドラインで指定されたタスクを実行します。Rake::Application#top_level...

絞り込み条件を変える