るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle align_size_t

クラス

モジュール

キーワード

検索結果

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

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

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

t
ask default: :test_rake_app
t
ask :test_rake_app do
Rake
.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=false, load_system=fa...
...lse, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=8, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>
end
//}...

Rake::FileTask#timestamp -> Time | Rake::LateTime (9314.0)

ファイルタスクのタイムスタンプを返します。

...ファイルタスクのタイムスタンプを返します。

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

t
ask default: "test.txt"
file "test.txt" do |task|
Rake
.application.options.build_all = false
t
ask.timestamp # => #<Rake::LateTime:0x2ba58f0>
end
//}...

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

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

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

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

require 'pp'

t
ask default: :test_rake_app
t
ask :test_rake_app do
pp Rake.application
end

# => #<Rake::Application:0x31b0f18
# @default_loader=#<Rake::DefaultLoader:0x31b0c78>,
#...
...mported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x31b0c18>,
# ".rf"=>#<Rake::DefaultLoader:0x31b0b88>,
# ".rake"=>#<Rake::DefaultLoader:0x31b0b10>},
# @name="rake",
# @options=#<OpenStruct rakelib=["rakelib"], trace_output=#<IO:<STDER...
...path/to/dir",
# @pending_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_a...

Rake.application=(app) (6144.0)

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

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

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

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

require 'pp'

t
ask default: :test_rake_app
t
ask :test_rake_app do
app = Rake::Application.new
app.tty_output = t...
...rue
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>,
# ".rake"=>#<Rake::DefaultLoader:0x00005624e6c30a80>},
# @name="rake",
# @options=
# #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=false, loa...

Rake::FileTask#needed? -> bool (3014.0)

このタスクが必要である場合は真を返します。 そうでない場合は偽を返します。

...るファイルが古い場合に真を返します。

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

t
ask default: "test.txt"
file "test.txt" do |task|
Rake
.application.options.build_all = false
t
ask.needed? # => true
IO.write("test.txt", "test")
t
ask.needed? # => false
end
//}...

絞り込み条件を変える