るりまサーチ

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

別のキーワード

  1. kernel test
  2. _builtin test
  3. rubygems/test_utilities tempio
  4. rubygems/test_utilities fetcher=
  5. testtask test_files=

ライブラリ

モジュール

検索結果

<< 1 2 3 ... > >>

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

現在の 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>,
# @imported=[],
# @last_descripti...
...ile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks=
# {"default"=><Rake::Task default => [test_rake_app]>,
# "test_rake_app"=><Rake::Task test_rake_app => []>},
# @terminal_columns=0,
# @top_level_tasks=["default"],
# @tty_output=false>
//}...

Rake.application=(app) (6143.0)

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

...m 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 = true
Rake.application = app
pp Rake.application
end

# =>...

Rake::Application#top_level (3042.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#add_loader(ext, loader) (3030.0)

与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。

...ask default: :test
task :test

makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)
Rake.application.add_loader("mf", Rake::MakefileLoader.new)
Rake.application.add_import("sample.mf")
Rake::Task.task_defined?("a") # => false
Rake.application.load_imports...

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

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

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

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

task default: :test
task :test

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

絞り込み条件を変える

Rake::Application#tty_output=(tty_output_state) (3030.0)

TTY に対する出力状態を上書きします。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.tty_output? # => false
Rake.application.tty_output = "debug output" # => "debug output"
Rake.application.tty_output? # => "debug output"
end
//}...

Rake::Application#name -> String (3018.0)

アプリケーションの名前を返します。通常は 'rake' という名前を返します。

...アプリケーションの名前を返します。通常は 'rake' という名前を返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//}...

Rake::Application#options -> OpenStruct (3018.0)

コマンドラインで与えられたアプリケーションのオプションを返します。

...ケーションのオプションを返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false...

Rake::Application#original_dir -> String (3018.0)

rake コマンドを実行したディレクトリを返します。

...rake コマンドを実行したディレクトリを返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.original_dir # => "/path/to/dir"
end
//}...
<< 1 2 3 ... > >>