種類
- 特異メソッド (24)
- インスタンスメソッド (12)
ライブラリ
- rake (36)
クラス
-
Rake
:: Application (12)
モジュール
- Rake (24)
キーワード
- application (12)
- application= (12)
検索結果
先頭3件
-
Rake
:: Application # tty _ output=(tty _ output _ state) (18106.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=(app) (12.0) -
現在の Rake アプリケーションをセットします。
...by]{
# 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:0x00005624e6c30eb8
# @default_loader=#<Rake::DefaultLoade......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 -> Rake :: Application (6.0) -
現在の Rake アプリケーションを返します。
...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>
//}...