るりまサーチ

最速Rubyリファレンスマニュアル検索!
504件ヒット [101-200件を表示] (0.064秒)
トップページ > クエリ:p[x] > ライブラリ:shell/command-processor[x]

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dh p
  5. rsa p

検索結果

<< < 1 2 3 4 ... > >>

Shell::CommandProcessor#rmdir(*path) -> () (3102.0)

Dir.rmdirと同じです。 (複数可)

...Dir.rmdirと同じです。 (複数可)

@param path 削除するディレクトリ名を文字列で指定します。...

Shell::CommandProcessor#system(command, *opts) -> Shell::SystemCommand (3102.0)

command を実行する.

...command を実行する.

@param command 実行するコマンドのパスを文字列で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Shell.verbose = false
sh = Shell.new

p
rint sh.system("ls", "-l")
S...

Shell::CommandProcessor#truncate(path, length) -> 0 (3102.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate...

Shell::CommandProcessor#unlink(path) -> self (3102.0)

path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。

...
p
ath がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。

@param path 削除したいパスを指定します。

@see File.unlink, Dir.unlink...

Shell::CommandProcessor.alias_command(alias, command, *opts) -> self (3102.0)

@todo

...@todo

@param alias エイリアスの名前を指定します。

@param command コマンド名を指定します。

@param opts コマンドに与えるオプションを指定します。

@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。...

絞り込み条件を変える

Shell::CommandProcessor.alias_command(alias, command, *opts) { ... } -> self (3102.0)

@todo

...@todo

@param alias エイリアスの名前を指定します。

@param command コマンド名を指定します。

@param opts コマンドに与えるオプションを指定します。

@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。...

Shell::CommandProcessor.def_builtin_commands(delegation_class, commands_specs) -> () (3102.0)

@todo

...@todo

@param delegation_class 処理を委譲したいクラスかモジュールを指定します。

@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]...

Shell::CommandProcessor.def_system_command(command, path = command) -> () (3102.0)

@todo

...@todo

与えられたコマンドをメソッドとして定義します。

@param command 定義したいコマンドを指定します。

@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。...

Shell::CommandProcessor.install_system_commands(prefix = "sys_") -> () (3102.0)

全てのシステムコマンドをメソッドとして定義します。

...うプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。

@param prefix プレフィクスを指定します。...

Shell::CommandProcessor#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (3032.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@param file1 文字列でファイルへのパスを指定します。

@para...
...ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p
sh[?e, "foo"] # => true
p
sh[:e, "foo"] # => true
p
sh["e", "foo"] # => true
p
sh[:exists?, "foo"] # => true
p
sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

絞り込み条件を変える

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (3032.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@param file1 文字列でファイルへのパスを指定します。

@para...
...ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p
sh[?e, "foo"] # => true
p
sh[:e, "foo"] # => true
p
sh["e", "foo"] # => true
p
sh[:exists?, "foo"] # => true
p
sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

Shell::CommandProcessor#atime(filename) -> Time (3002.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@see File.atime...

Shell::CommandProcessor#basename(filename, suffix = "") -> String (3002.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き...

Shell::CommandProcessor#blockdev?(file) -> bool (3002.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#blockdev?...

Shell::CommandProcessor#cat(*files) -> Shell::Filter (3002.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...クトを返します.

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |...

絞り込み条件を変える

Shell::CommandProcessor#chardev?(file) -> bool (3002.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#chardev?...

Shell::CommandProcessor#chmod(mode, *filename) -> Integer (3002.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param mode chmod(2) と同様に整数で指定します。

@see File.chmod...

Shell::CommandProcessor#concat(*jobs) -> Shell::Concat (3002.0)

@todo

@todo
<< < 1 2 3 4 ... > >>