るりまサーチ

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

別のキーワード

  1. pp pp
  2. pp seplist
  3. pp singleline_pp
  4. pp object_group
  5. pp comma_breakable

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 > >>

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

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

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

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

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

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 -> Rake::Application (6254.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>,
#...
...ing_imports=[],
# @rakefile="rakefile",
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks=
# {"default"=><Rake::Task default => [test_rake_app]>,
# "test_rake_app"=><Rake::Task test_rake_app => []>},
# @termin...

Rake.application=(app) (6248.0)

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

...@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 = true
Rake.application = app
pp
Rake.application
end...
...# => #<Rake::Application:0x00005624e6c30eb8
# @default_loader=#<Rake::DefaultLoader:0x00005624e6c30cd8>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x00005624e6c30bc0>,
# ".rf"=>#<Rake::DefaultLoader:0x00005624e6c30b48>,
#...
...l, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=20, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile=nil,
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rule...

絞り込み条件を変える

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (6106.0)

与えられたタスク名を追加して新しい Rake::InvocationChain を返します。

...た場合に発生します。

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

task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}...

Rake::InvocationChain.append(task_name, chain) -> Rake::InvocationChain (6106.0)

与えられたタスク名を第二引数の Rake::InvocationChain に追加します。

...e::InvocationChain のインスタンスを指定します。

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

task default: :test_rake_app
task :test_rake_app do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}...

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

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

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

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

task default: :test
task :test

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

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

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

...require "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
//}...
<< 1 2 3 > >>