るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io readlines
  5. io each_line

検索結果

Rake::Application#options -> OpenStruct (27643.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, ignore_system=false, job_stats=false, load_system=false, 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=#...

Rake.application -> Rake::Application (18943.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>,
#...
...st_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x31b0c18>,
# ".rf"=>#<Rake::DefaultLoader:0x31b0b88>,
# ".rake"=>#<Rake::DefaultLoader:0x31b0b10>},
# @name="rake",
# @options=#<OpenStruct rakelib=["rakelib"], trace_output=#<IO:<STDERR>>>,
# @original...
...nding_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 => []>},
# @term...

Rake::Task#application -> Rake::Application (18907.0)

自身を所有している Rake::Application のインスタンスを返します。

...自身を所有している Rake::Application のインスタンスを返します。...

Module#rake_extension(method) { ... } -> () (18607.0)

与えられたブロック内で既に存在するメソッドを再定義しようとした場合に 警告を表示します。この場合、ブロックは評価されません。

...た場合に
警告を表示します。この場合、ブロックは評価されません。

@param method ブロック内で再定義する予定のメソッド名を指定します。

例:
class String
rake
_extension("xyz") do
def xyz
...
end
end
end...

Rake::InvocationChain::EmptyInvocationChain#append(task_name) -> Rake::InvocationChain (18607.0)

与えられた値を追加した Rake::InvocationChain を返します。

...与えられた値を追加した Rake::InvocationChain を返します。

@param task_name 追加する値を指定します。...

絞り込み条件を変える

Rake::Task#actions -> Array (18607.0)

自身に関連するアクションのリストを返します。

自身に関連するアクションのリストを返します。

Rake::Task#clear_actions -> self (18607.0)

自身に登録されているアクションをクリアします。

自身に登録されているアクションをクリアします。

Rake::Task#investigation -> String (18607.0)

自身の詳しい内部状態を文字列化して返します。

自身の詳しい内部状態を文字列化して返します。

このメソッドはデバッグに便利です。

Rake::PackageTask#version -> String (18604.0)

作成するパッケージのバージョンを表す文字列を返します。

作成するパッケージのバージョンを表す文字列を返します。

Rake::RDocTask#option_list -> Array (18604.0)

rdoc コマンドに渡すオプションのリストを返します。

rdoc コマンドに渡すオプションのリストを返します。

絞り込み条件を変える

Rake::RDocTask#option_string -> String (18604.0)

rdoc コマンドに渡すオプションを文字列として返します。

rdoc コマンドに渡すオプションを文字列として返します。

Rake::RDocTask#options -> Array (18604.0)

rdoc コマンドに渡すオプションのリストを返します。

rdoc コマンドに渡すオプションのリストを返します。

指定できるオプションは -o, --main, --title, -T 以外です。

Rake::TestTask#options -> String (18604.0)

テストスイートに渡すパラメータを返します。

テストスイートに渡すパラメータを返します。

コマンドラインで "TESTOPTS=options" が指定されると、この値を上書きします。
デフォルトは何も指定されていません。

Rake.application=(app) (18343.0)

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

...現在の 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>,
# ".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=...

Rake::InvocationChain::EmptyInvocationChain#member?(task_name) -> bool (18307.0)

偽を返します。

偽を返します。

絞り込み条件を変える

Rake::InvocationChain::EmptyInvocationChain#to_s -> String (18307.0)

'TOP' という文字列を返します。

'TOP' という文字列を返します。

Rake::InvocationChain::EMPTY -> Rake::InvocationChain::EmptyInvocationChain (9907.0)

Rake::InvocationChain::EmptyInvocationChain のインスタンスを表します。

...
Rake
::InvocationChain::EmptyInvocationChain のインスタンスを表します。...

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

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

...しい Rake::InvocationChain を返します。

@param task_name 追加するタスク名を指定します。

@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。

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

task default: :test_rake_app
tas...
...k :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 (9607.0)

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

... Rake::InvocationChain に追加します。

@param task_name タスク名を指定します。

@param chain 既に存在する Rake::InvocationChain のインスタンスを指定します。

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

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

Rake::TaskManager#last_description -> String (9607.0)

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

...
Rake
file 内の最新の詳細説明を追跡するためのメソッドです。

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

task default: :test_rake_app1

desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end

desc "test2"
task :test_rake_a...

絞り込み条件を変える

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Rake::Application#top_level_tasks -> Array (9307.0)

コマンドラインで指定されたタスクのリストを返します。

...コマンドラインで指定されたタスクのリストを返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake
.application.top_level_tasks # => ["default"]
end
//}...

Rake::Application::DEFAULT_RAKEFILES -> Array (9307.0)

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

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

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

絞り込み条件を変える

Rake::FileCreationTask#needed? -> bool (9307.0)

ファイルが存在しない場合、真を返します。 そうでない場合は、偽を返します。

ファイルが存在しない場合、真を返します。
そうでない場合は、偽を返します。


@see [[FileTask#needed?]]

Rake::FileCreationTask#timestamp -> Rake::EarlyTime (9307.0)

どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。

どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。


@see [[FileTask#timestamp]]

Rake::InvocationChain#member?(task_name) -> bool (9307.0)

与えられたタスク名が自身に含まれる場合は真を返します。 そうでない場合は偽を返します。

...

@param task_name タスク名を指定します。

//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.member?("task_a") # => true...

Rake::InvocationChain#to_s -> String (9307.0)

トップレベルのタスクから自身までの依存関係を文字列として返します。

...での依存関係を文字列として返します。

//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.to_s # => "TOP => task_a"
end
//...

Kernel#desc(description) -> String (607.0)

直後の Rake タスクの説明を登録します。

...直後の Rake タスクの説明を登録します。

@param description 直後のタスクの説明を指定します。

例:
desc "Run the Unit Tests"
task :test => [:build] do
runtests
end...

絞り込み条件を変える

Kernel#file_create(*args) { ... } -> Rake::FileCreationTask (607.0)

ファイルを作成するタスクを定義します。

ファイルを作成するタスクを定義します。

主に Kernel.#directory を定義するために使用します。

Rake::GemPackageTask#gem_spec -> Gem::Specification (604.0)

package ターゲットで使用する gemspec を返します。

package ターゲットで使用する gemspec を返します。

gemspec にはパッケージ名、バージョン、パッケージに含まれるファイルなどが定義
されているので、それらを明示的に指定する必要はありません。

Rake::PackageTask.new(name = nil, version = nil) {|t| ... } -> Rake::PackageTask (604.0)

自身を初期化してタスクを定義します。

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

Rake
::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_dir = "./pkg"
package_task.package_files.include("lib/**/*")
end

# rake -T を実行すると以下になる
# => rake clobber_package...
...# Remove package products
# rake package # Build all the packages
# rake repackage # Force a rebuild of the package files
//}...

Rake::FileList#resolve -> self (361.0)

追加リストと除外リストを評価します。

...ストと除外リストを評価します。

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

IO.write("test.rb", "test")
IO.write("test.java", "test")
IO.write("test.js", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("*.rb")
file_list.include("*....

Rake::FileList#excluded_from_list?(file_name) -> bool (343.0)

与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。

...

@param file_name ファイル名を指定します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb")
file_list.exclude("te...

絞り込み条件を変える

Rake::FileList#existing -> Rake::FileList (343.0)

自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含む Rake::FileList を返します。

...ステムに存在するファイルのみを
含む Rake::FileList を返します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2....

Rake::FileList#existing! -> self (343.0)

自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含むように自身を変更して返します。

...みを
含むように自身を変更して返します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list...

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (343.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

...各要素に String#ext を適用した新しい Rake::FileList を返します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb"...

Rake::FileList#gsub!(pattern, replace) -> self (343.0)

自身に含まれるファイルリストのそれぞれのエントリに対して String#gsub を実行します。 自身を破壊的に変更します。

...実行します。
自身を破壊的に変更します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list...

Rake::FileList#import(array) -> self (343.0)

与えられた配列を自身にインポートします。

...param array ファイル名のリストを指定します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_li...

絞り込み条件を変える

Rake::PackageTask#package_files -> Rake::FileList (340.0)

パッケージに含むファイルリストを返します。

...パッケージに含むファイルリストを返します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

Rake
::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_files # =>...

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

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

...作成しようとしているファイルが古い場合に真を返します。

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

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

Rake::TaskManager#synthesize_file_task(task_name) -> Rake::FileTask | nil (325.0)

与えられたタスク名をもとにファイルタスクを合成します。

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

task default: :test_rake_app

task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO.write("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_file =...