22件ヒット
[1-22件を表示]
(0.088秒)
検索結果
-
FileUtils
# split _ all(path) -> Array (102.0) -
与えられたパスをディレクトリごとに分割します。
与えられたパスをディレクトリごとに分割します。
@param path 分割するパスを指定します。
例:
split_all("a/b/c") # => ['a', 'b', 'c'] -
FileUtils
# sh(*cmd) {|result , status| . . . } (8.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...