33件ヒット
[1-33件を表示]
(0.023秒)
検索結果
先頭3件
-
Kernel
# rule(*args) {|t| . . . } -> Rake :: Task (21008.0) -
自動的に作成するタスクのためのルールを定義します。
...自動的に作成するタスクのためのルールを定義します。
@param args ルールに与えるパラメータを指定します。
例:
rule '.o' => '.c' do |t|
sh %{cc -o #{t.name} #{t.source}}
end... -
FileUtils
# sh(*cmd) {|result , status| . . . } (18139.0) -
与えられたコマンドを実行します。
...は 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.#exe... -
FileUtils
# ruby(*args) {|result , status| . . . } (14.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh...