別のキーワード
クラス
- Module (1)
-
Rake
:: Application (11) -
Rake
:: FileCreationTask (2) -
Rake
:: FileList (8) -
Rake
:: FileTask (1) -
Rake
:: GemPackageTask (1) -
Rake
:: InvocationChain (3) -
Rake
:: InvocationChain :: EmptyInvocationChain (3) -
Rake
:: MakefileLoader (1) -
Rake
:: PackageTask (5) -
Rake
:: RDocTask (4) -
Rake
:: Task (7) -
Rake
:: TestTask (3)
モジュール
- Kernel (2)
-
Rake
:: TaskManager (3)
キーワード
- actions (1)
-
add
_ description (1) -
add
_ loader (1) - append (2)
- application (1)
- application= (1)
-
arg
_ description (1) -
clear
_ actions (1) - desc (1)
- egrep (1)
-
excluded
_ from _ list? (1) - existing (1)
- existing! (1)
- ext (1)
-
file
_ create (1) -
gem
_ spec (1) - gsub! (1)
- import (1)
- init (2)
- investigation (1)
-
last
_ description (1) -
last
_ description= (1) - load (1)
-
load
_ rakefile (1) - member? (2)
- name (1)
- needed? (2)
-
option
_ list (1) -
option
_ string (1) -
original
_ dir (1) -
package
_ files (1) -
package
_ files= (1) -
rake
_ extension (1) - rakefile (1)
- resolve (1)
-
ruby
_ opts= (1) - run (1)
-
synthesize
_ file _ task (1) -
to
_ s (2) -
top
_ level (1) -
top
_ level _ tasks (1) -
tty
_ output= (1) - version (1)
- version= (1)
検索結果
先頭5件
-
Rake
:: Application # options -> OpenStruct (27328.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
:: Task # add _ description(description) (18610.0) -
自身に詳細説明を追加します。
自身に詳細説明を追加します。 -
Rake
:: Task # application -> Rake :: Application (18610.0) -
自身を所有している Rake::Application のインスタンスを返します。
...自身を所有している Rake::Application のインスタンスを返します。... -
Rake
:: TaskManager # last _ description=(description) (18610.0) -
最新の詳細説明をセットします。
...by]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
task.application.last_description # => "test2"
task.application.last_description = "test3"
task.application.last_description # => "test3"
end
desc "test2"
task :test_rake_app2... -
Rake
:: RDocTask # options=(options) (18607.0) -
rdoc コマンドに渡すオプションのリストをセットします。
rdoc コマンドに渡すオプションのリストをセットします。
@param options rdoc コマンドに渡されるオプションを指定します。 -
Rake
:: TestTask # options=(option _ str) (18607.0) -
テストスイートに渡すパラメータをセットします。
テストスイートに渡すパラメータをセットします。
@param option_str テストスイートに渡すパラメータを指定します。 -
Module
# rake _ extension(method) { . . . } -> () (18310.0) -
与えられたブロック内で既に存在するメソッドを再定義しようとした場合に 警告を表示します。この場合、ブロックは評価されません。
...た場合に
警告を表示します。この場合、ブロックは評価されません。
@param method ブロック内で再定義する予定のメソッド名を指定します。
例:
class String
rake_extension("xyz") do
def xyz
...
end
end
end... -
Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (18310.0) -
与えられた値を追加した Rake::InvocationChain を返します。
...与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。... -
Rake
:: Task # actions -> Array (18310.0) -
自身に関連するアクションのリストを返します。
自身に関連するアクションのリストを返します。 -
Rake
:: Task # application=(app) (18310.0) -
自身を所有している Rake::Application のインスタンスをセットします。
...自身を所有している Rake::Application のインスタンスをセットします。
@param app 自身を所有しているアプリケーションを指定します。... -
Rake
:: Task # arg _ description (18310.0) -
-
Rake
:: Task # clear _ actions -> self (18310.0) -
自身に登録されているアクションをクリアします。
自身に登録されているアクションをクリアします。 -
Rake
:: Task # investigation -> String (18310.0) -
自身の詳しい内部状態を文字列化して返します。
自身の詳しい内部状態を文字列化して返します。
このメソッドはデバッグに便利です。 -
Rake
:: PackageTask # version -> String (18307.0) -
作成するパッケージのバージョンを表す文字列を返します。
作成するパッケージのバージョンを表す文字列を返します。 -
Rake
:: PackageTask # version=(str) (18307.0) -
作成するパッケージのバージョンをセットします。
作成するパッケージのバージョンをセットします。
@param str バージョンを表す文字列を指定します。 -
Rake
:: RDocTask # option _ list -> Array (18307.0) -
rdoc コマンドに渡すオプションのリストを返します。
rdoc コマンドに渡すオプションのリストを返します。 -
Rake
:: RDocTask # option _ string -> String (18307.0) -
rdoc コマンドに渡すオプションを文字列として返します。
rdoc コマンドに渡すオプションを文字列として返します。 -
Rake
:: RDocTask # options -> Array (18307.0) -
rdoc コマンドに渡すオプションのリストを返します。
rdoc コマンドに渡すオプションのリストを返します。
指定できるオプションは -o, --main, --title, -T 以外です。 -
Rake
:: TestTask # options -> String (18307.0) -
テストスイートに渡すパラメータを返します。
テストスイートに渡すパラメータを返します。
コマンドラインで "TESTOPTS=options" が指定されると、この値を上書きします。
デフォルトは何も指定されていません。 -
Rake
:: InvocationChain :: EmptyInvocationChain # member?(task _ name) -> bool (18010.0) -
偽を返します。
偽を返します。 -
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (18010.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (9310.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
:: TaskManager # last _ description -> String (9310.0) -
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
...
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
//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 # add _ loader(ext , loader) (9028.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
...e "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;) (9010.0) -
コマンドラインオプションとアプリケーション名を初期化します。
...ンドラインオプションとアプリケーション名を初期化します。
//emlist[例][ruby]{
# Rakefile での記載例とする
task default: :test
task :test
Rake.application.name # => "rake"
Rake.application.init("MyApp") # => ["default"]
Rake.application.name # => "MyApp"
//}... -
Rake
:: Application # load _ rakefile (9010.0) -
Rakefile を探してロードします。
...
Rakefile を探してロードします。... -
Rake
:: Application # name -> String (9010.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 (9010.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 (9010.0) -
実際に使用されている Rakefile の名前を返します。
...実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}... -
Rake
:: Application # run (9010.0) -
Rake アプリケーションを実行します。
...
Rake アプリケーションを実行します。
このメソッドは以下の 3 ステップを実行します。
* コマンドラインオプションを初期化します。Rake::Application#init
* タスクを定義します。Rake::Application#load_rakefile
* コマンドラインで......指定されたタスクを実行します。Rake::Application#top_level... -
Rake
:: Application # top _ level (9010.0) -
Rake アプリケーションに与えられたトップレベルのタスク (コマンドラインで指定されたタスク) を実行します。
...
Rake アプリケーションに与えられたトップレベルのタスク
(コマンドラインで指定されたタスク) を実行します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test1
task :test1
task :test2 do
puts "test2"
end
# rake test2 で実行
R... -
Rake
:: Application # top _ level _ tasks -> Array (9010.0) -
コマンドラインで指定されたタスクのリストを返します。
...コマンドラインで指定されたタスクのリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.top_level_tasks # => ["default"]
end
//}... -
Rake
:: Application # tty _ output=(tty _ output _ state) (9010.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? #... -
Rake
:: FileCreationTask # needed? -> bool (9010.0) -
ファイルが存在しない場合、真を返します。 そうでない場合は、偽を返します。
ファイルが存在しない場合、真を返します。
そうでない場合は、偽を返します。
@see [[FileTask#needed?]] -
Rake
:: FileCreationTask # timestamp -> Rake :: EarlyTime (9010.0) -
どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。
どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。
@see [[FileTask#timestamp]] -
Rake
:: InvocationChain # member?(task _ name) -> bool (9010.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 (9010.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 (310.0) -
直後の Rake タスクの説明を登録します。
...直後の Rake タスクの説明を登録します。
@param description 直後のタスクの説明を指定します。
例:
desc "Run the Unit Tests"
task :test => [:build] do
runtests
end... -
Kernel
# file _ create(*args) { . . . } -> Rake :: FileCreationTask (310.0) -
ファイルを作成するタスクを定義します。
ファイルを作成するタスクを定義します。
主に Kernel.#directory を定義するために使用します。 -
Rake
:: GemPackageTask # gem _ spec -> Gem :: Specification (307.0) -
package ターゲットで使用する gemspec を返します。
package ターゲットで使用する gemspec を返します。
gemspec にはパッケージ名、バージョン、パッケージに含まれるファイルなどが定義
されているので、それらを明示的に指定する必要はありません。 -
Rake
:: PackageTask # init(name , version) (307.0) -
自身の各属性にデフォルト値をセットします。
自身の各属性にデフォルト値をセットします。
@param name パッケージの名前を指定します。
@param version パッケージのバージョンを指定します。 -
Rake
:: TestTask # ruby _ opts=(options) (307.0) -
テスト実行時に Ruby コマンドに渡されるオプションをセットします。
テスト実行時に Ruby コマンドに渡されるオプションをセットします。
@param options 配列でオプションを指定します。 -
Rake
:: FileList # resolve -> self (64.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 # egrep(pattern) {|filename , count , line| . . . } (46.0) -
与えられたパターンをファイルリストから grep のように検索します。
...attern 正規表現を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("sample1", "line1\nline2\nline3\n")
IO.write("sample2", "line1\nline2\nline3\nline4\n")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new('sample*')
file_list.eg... -
Rake
:: FileList # excluded _ from _ list?(file _ name) -> bool (46.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 (46.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 (46.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 (46.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 (46.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 (46.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
:: MakefileLoader # load(filename) (43.0) -
与えられた Makefile をロードします。
...します。
@param filename 読み込む Makefile の名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require "rake/loaders/makefile"
task default: :test_rake_app
open "sample.mf", "w" do |io|
io << <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
b: b1 b2 b3 \
b4......a6 a7
c: c1
d: d1 d2 \
e f : e1 f1
g\ 0: g1 g\ 2 g\ 3 g4
SAMPLE_MF
end
task :test_rake_app do |task|
loader = Rake::MakefileLoader.new
loader.load("sample.mf")
p Rake::Task.task_defined?("a") # => true
p Rake::Task.tasks[0] # => <Rake::FileTask a => [a1, a2, a3, a4, a5, a6, a7]>
end
//}... -
Rake
:: PackageTask # package _ files -> Rake :: FileList (43.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
:: PackageTask # package _ files=(file _ list) (43.0) -
パッケージに含むファイルリストを設定します。
...。
@param file_list ファイルリストを指定します。
//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 (28.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 (28.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 =...