るりまサーチ

最速Rubyリファレンスマニュアル検索!
372件ヒット [1-100件を表示] (0.021秒)

別のキーワード

  1. rake application
  2. rake application=
  3. application load_rakefile
  4. application name

ライブラリ

モジュール

検索結果

<< 1 2 3 ... > >>

Rake::Application#rakefile -> String (21141.0)

実際に使用されている Rakefile の名前を返します。

...実際に使用されている Rakefile の名前を返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}...

Rake.application -> Rake::Application (18256.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>,
# @i...
...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::DEFAULT_RAKEFILES -> Array (9140.0)

デフォルトで Rakefile として扱うファイル名の配列を返します。

...デフォルトで Rakefile として扱うファイル名の配列を返します。

'rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb' が指定されています。...

Rake::Application#load_rakefile (9117.0)

Rakefile を探してロードします。

...
Rakefile
を探してロードします。...

Rake.application=(app) (6167.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

# =>...
...put=#<IO:<STDERR>>, trace_rules=false>,
# @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=...

絞り込み条件を変える

Rake::Application#add_loader(ext, loader) (3024.0)

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

...ire "rake/loaders/makefile"

# Rakefile での記載例とする

task 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::Task.task_defined?("a") # => true
//}...

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

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

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

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

task default: :test
task :test

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

Rake::Application#run (3024.0)

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

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

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

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

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

...定します

//emlist[][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? # => "d...
<< 1 2 3 ... > >>