391件ヒット
[1-100件を表示]
(0.074秒)
種類
- モジュール関数 (259)
- 特異メソッド (60)
- インスタンスメソッド (48)
- 定数 (24)
キーワード
- METHODS (12)
-
OPT
_ TABLE (12) - chmod (12)
-
chmod
_ R (12) - chown (12)
-
chown
_ R (12) - cmp (12)
-
collect
_ method (12) - commands (12)
-
compare
_ file (12) -
compare
_ stream (12) -
copy
_ entry (12) -
copy
_ file (12) -
copy
_ stream (12) -
cp
_ lr (7) -
have
_ option? (12) - identical? (12)
- install (12)
- makedirs (12)
-
mkdir
_ p (12) - mkpath (12)
-
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) - ruby (12)
-
safe
_ ln (12) -
safe
_ unlink (12) - sh (12)
-
split
_ all (12) - uptodate? (12)
検索結果
先頭5件
-
FileUtils
. # compare _ stream(io _ a , io _ b) -> bool (6124.0) -
IO オブジェクト io_a と io_b の内容が同じなら真を返します。
...IO オブジェクト io_a と io_b の内容が同じなら真を返します。
@param io_a IO オブジェクト。
@param io_b IO オブジェクト。... -
FileUtils
# split _ all(path) -> Array (6113.0) -
与えられたパスをディレクトリごとに分割します。
...与えられたパスをディレクトリごとに分割します。
@param path 分割するパスを指定します。
例:
split_all("a/b/c") # => ['a', 'b', 'c']... -
FileUtils
# safe _ ln(*args) (6101.0) -
安全にリンクを作成します。
...安全にリンクを作成します。
リンクの作成に失敗した場合はファイルをコピーします。
@param args FileUtils.#cp, FileUtils.#ln に渡す引数を指定します。
@see FileUtils.#cp, FileUtils.#ln... -
FileUtils
. # copy _ stream(src , dest) -> () (6101.0) -
src を dest にコピーします。 src には read メソッド、dest には write メソッドが必要です。
...src を dest にコピーします。
src には read メソッド、dest には write メソッドが必要です。
@param src read メソッドを持つオブジェクト。
@param dest write メソッドを持つオブジェクト。... -
FileUtils
. # install(src , dest , options = {}) -> () (6101.0) -
src と dest の内容が違うときだけ src を dest にコピーします。
...dest にコピーします。
@param src コピー元。一つの場合は文字列でも指定可能です。
二つ以上指定する場合は配列で指定します。
@param dest コピー先のファイルかディレクトリです。
@param options :preserve, :noop, :verbose,......:mode が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.install('ruby', '/usr/local/bin/ruby', mode: 0755, verbose: true)
FileUtils.install('lib.rb', '/usr/local/lib/ruby/site_ruby', verbose: true)
//}......:mode, :owner, :group が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.install('ruby', '/usr/local/bin/ruby', mode: 0755, verbose: true)
FileUtils.install('lib.rb', '/usr/local/lib/ruby/site_ruby', verbose: true)
//}... -
FileUtils
. # makedirs(list , options = {}) -> Array (6101.0) -
ディレクトリ dir とその親ディレクトリを全て作成します。
...す。
例えば、
//emlist[][ruby]{
require 'fileutils'
FileUtils.mkdir_p('/usr/local/lib/ruby')
//}
は以下の全ディレクトリを (なければ) 作成します。
* /usr
* /usr/local
* /usr/local/bin
* /usr/local/bin/ruby
@param list 作成するディレクトリ。一つの......場合は文字列でも指定できます。
二つ以上指定する場合は配列で指定します。
@param options :mode, :noop, :verbose が指定できます。
c:FileUtils#options
@return ディレクトリ名文字列の配列を返します。... -
FileUtils
. # mkpath(list , options = {}) -> Array (6101.0) -
ディレクトリ dir とその親ディレクトリを全て作成します。
...す。
例えば、
//emlist[][ruby]{
require 'fileutils'
FileUtils.mkdir_p('/usr/local/lib/ruby')
//}
は以下の全ディレクトリを (なければ) 作成します。
* /usr
* /usr/local
* /usr/local/bin
* /usr/local/bin/ruby
@param list 作成するディレクトリ。一つの......場合は文字列でも指定できます。
二つ以上指定する場合は配列で指定します。
@param options :mode, :noop, :verbose が指定できます。
c:FileUtils#options
@return ディレクトリ名文字列の配列を返します。... -
FileUtils
. # uptodate?(newer , older _ list , options = nil) -> bool (6101.0) -
newer が、older_list に含まれるすべてのファイルより新しいとき真。 存在しないファイルは無限に古いとみなされます。
...無限に古いとみなされます。
@param newer ファイルを一つ指定します。
@param older_list ファイル名の配列を指定します。
@param options どのようなオプションも指定することはできません。
@raise ArgumentError options にオプションを......指定した場合に発生します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.uptodate?('hello.o', ['hello.c', 'hello.h']) or system('make')
//}... -
FileUtils
. commands -> Array (6101.0) -
何らかのオプションを持つメソッド名の配列を返します。
...何らかのオプションを持つメソッド名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.commands # => ["chmod", "cp", "cp_r", "install", ...]
//}...