935件ヒット
[1-100件を表示]
(0.041秒)
クラス
- Module (11)
-
Rake
:: Application (22) -
Rake
:: DefaultLoader (11) -
Rake
:: EarlyTime (11) -
Rake
:: FileCreationTask (22) -
Rake
:: FileList (88) -
Rake
:: GemPackageTask (11) -
Rake
:: InvocationChain (22) -
Rake
:: InvocationChain :: EmptyInvocationChain (11) -
Rake
:: MakefileLoader (11) -
Rake
:: NameSpace (11) -
Rake
:: PackageTask (132) -
Rake
:: RDocTask (77) -
Rake
:: Task (44) -
Rake
:: TaskArguments (77) -
Rake
:: TestTask (88) - String (33)
モジュール
- FileUtils (44)
- Kernel (77)
-
Rake
:: TaskManager (99) - RakeFileUtils (33)
キーワード
- * (11)
- <=> (11)
- == (11)
- [] (33)
-
add
_ loader (11) - append (22)
- application= (11)
- comment= (11)
-
create
_ rule (11) - define (11)
-
define
_ task (11) - desc (11)
- directory (11)
- each (11)
- egrep (11)
-
enhance
_ with _ matching _ rule (11) -
excluded
_ from _ list? (11) - ext (22)
- external= (11)
- file (11)
-
gem
_ spec= (11) - import (22)
-
in
_ namespace (11) - include (11)
- init (11)
- inspect (11)
- intern (11)
- libs= (11)
- load (22)
- loader= (11)
- lookup (22)
- member? (11)
- name= (33)
- namespace (11)
-
need
_ tar= (11) -
need
_ tar _ bz2= (11) -
need
_ tar _ gz= (11) -
need
_ zip= (11) - needed? (11)
-
new
_ scope (11) - nowrite (11)
-
package
_ dir= (11) -
package
_ files= (11) - pathmap (11)
-
pathmap
_ explode (11) -
pathmap
_ replace (11) - quote (11)
-
rake
_ extension (11) -
rdoc
_ files= (11) -
resolve
_ args (11) - ruby (11)
-
ruby
_ opts= (11) - rule (11)
-
safe
_ ln (11) -
set
_ arg _ names (11) - sh (11)
- sources= (11)
-
split
_ all (11) -
synthesize
_ file _ task (11) -
tar
_ command= (11) - task (11)
- template= (11)
-
test
_ files= (11) - title= (11)
-
to
_ s (11) -
tty
_ output= (11) - verbose (11)
- verbose= (11)
- version= (11)
- warning= (11)
-
when
_ writing (11) -
with
_ defaults (11) -
zip
_ command= (11)
検索結果
先頭5件
-
Rake
:: TaskManager # enhance _ with _ matching _ rule(task _ name , level = 0) -> Rake :: Task | nil (21.0) -
与えられたタスク名にマッチしたルールが存在する場合は、そのタスクに見つかったルールの 事前タスクとアクションを追加して返します。
...たルールの
事前タスクとアクションを追加して返します。
@param task_name タスクの名前を指定します。
@param level 現在のルール解決のネストの深さを指定します。
@raise RuntimeError ルールの解決時にオーバーフローした場合に... -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (21.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...クを合成します。
@param task_name タスク名を指定します。
@return 与えられたタスク名と同名のファイルが存在する場合は、ファイルタスクを作成して返します。
そうでない場合は nil を返します。
@raise RuntimeError タス......//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 =... -
FileUtils
# ruby(*args) {|result , status| . . . } (15.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
FileUtils
# safe _ ln(*args) (15.0) -
安全にリンクを作成します。
...安全にリンクを作成します。
リンクの作成に失敗した場合はファイルをコピーします。
@param args FileUtils.#cp, FileUtils.#ln に渡す引数を指定します。
@see FileUtils.#cp, FileUtils.#ln... -
FileUtils
# sh(*cmd) {|result , status| . . . } (15.0) -
与えられたコマンドを実行します。
...られたコマンドを実行します。
与えられた引数が複数の場合、シェルを経由しないでコマンドを実行します。
@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'......# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end
@see Kernel.#exec, Kernel.#system... -
Kernel
# file(*args) { . . . } -> Rake :: FileTask (15.0) -
ファイルタスクを定義します。
...ファイルタスクを定義します。
@param args ファイル名と依存ファイル名を指定します。
例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets......outfile.puts line
end
end
end
end
@see Rake::Task.define_task... -
Kernel
# task(*args) { . . . } -> Rake :: Task (15.0) -
Rake タスクを定義します。
...
Rake タスクを定義します。
@param args タスク名と依存タスクを指定します。
例:
task :clobber => [:clean] do
rm_rf "html"
end
@see Rake::Task.define_task... -
Rake
:: Application # add _ loader(ext , loader) (15.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
...ルをロードするためのローダーを
自身に追加します。
@param ext 拡張子を指定します。
@param loader ローダーを指定します。
//emlist[例][ruby]{
require "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
makefile =......'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
:: EarlyTime # <=>(other) -> -1 (15.0) -
必ず -1 を返します。
...必ず -1 を返します。
@param other 比較対象のオブジェクト
@return -1 を返します。... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (15.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
//}...