22件ヒット
[1-22件を表示]
(0.028秒)
別のキーワード
検索結果
-
FileUtils
. commands -> Array (6101.0) -
何らかのオプションを持つメソッド名の配列を返します。
...何らかのオプションを持つメソッド名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.commands # => ["chmod", "cp", "cp_r", "install", ...]
//}... -
FileUtils
# sh(*cmd) {|result , status| . . . } (7.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 Kerne...