536件ヒット
[1-100件を表示]
(0.041秒)
ライブラリ
- ビルトイン (189)
- fileutils (11)
- rake (11)
-
rubygems
/ config _ file (22) -
rubygems
/ source _ info _ cache (44) - shell (30)
-
shell
/ command-processor (30) -
shell
/ filter (42) - syslog (33)
- timeout (19)
クラス
- Dir (66)
-
File
:: Stat (11) -
Gem
:: ConfigFile (22) -
Gem
:: SourceInfoCache (44) - IO (11)
- Shell (30)
-
Shell
:: CommandProcessor (30) -
Shell
:: Filter (42) - SystemCallError (33)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - > (6)
- >> (6)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 6 . 0 (6) -
OPERATING
_ SYSTEM _ DEFAULTS (11) -
SYSTEM
_ WIDE _ CONFIG _ FILE (11) - Syslog (11)
- Win32ネイティブ版Rubyの互換性問題 (11)
- cat (18)
-
close
_ on _ exec= (11) - echo (18)
- entries (11)
- foreach (22)
- glob (18)
-
latest
_ system _ cache _ file (22) - new (44)
- open (22)
- open! (11)
- out (18)
- pipe? (11)
- rake (11)
- rdoc (11)
- reopen (11)
-
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) - sh (11)
- spawn (44)
-
system
_ cache _ file (22) - tee (18)
- timeout (19)
- tsort (11)
- uptodate? (11)
- セキュリティモデル (11)
検索結果
先頭5件
-
Kernel
. # system(command , options={}) -> bool | nil (18142.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
//emlist[exceptionオプションを指定][ruby]{
system("sad", exception: true) # => Errno::ENOENT (No such file or directory - sad)
system('ruby -e "exit(false)"', exception: true)......# => RuntimeError (Command failed with exit 1: ruby -e "exit(false)")
system('ruby -e "exit(true)"', exception: true) # => true
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(env , command , options={}) -> bool | nil (18142.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
//emlist[exceptionオプションを指定][ruby]{
system("sad", exception: true) # => Errno::ENOENT (No such file or directory - sad)
system('ruby -e "exit(false)"', exception: true)......# => RuntimeError (Command failed with exit 1: ruby -e "exit(false)")
system('ruby -e "exit(true)"', exception: true) # => true
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(env , program , *args , options={}) -> bool | nil (18122.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(program , *args , options={}) -> bool | nil (18122.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Gem
:: ConfigFile :: SYSTEM _ WIDE _ CONFIG _ FILE -> String (15202.0) -
システム全体の設定ファイルのパスです。
システム全体の設定ファイルのパスです。 -
Gem
:: SourceInfoCache # latest _ system _ cache _ file -> String (12202.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache # system _ cache _ file -> String (12202.0) -
システムキャッシュファイルの名前を返します。
システムキャッシュファイルの名前を返します。 -
Gem
:: SourceInfoCache . latest _ system _ cache _ file -> String (12202.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache . system _ cache _ file -> String (12202.0) -
システムキャッシュのファイル名を返します。
システムキャッシュのファイル名を返します。 -
Gem
:: ConfigFile :: OPERATING _ SYSTEM _ DEFAULTS -> {} (9107.0) -
Ruby をパッケージングしている人がデフォルトの設定値をセットするために使用します。
...Ruby をパッケージングしている人がデフォルトの設定値をセットするために使用します。
使用するファイルは rubygems/defaults/operating_system.rb です。... -
SystemCallError
. new(errno) -> SystemCallError (3112.0) -
整数 errno に対応する Errno::EXXX オブジェクトを生成して返します。
...クトは SystemCallError の直接のインスタンスではなく、サブクラスのインスタンスです。
それらのサブクラスは Errno モジュール内に定義されています。
対応するサブクラスが存在しないコードを与えた場合には、 SystemCallError......ときに発生します。
例:
p SystemCallError.new("message", 2)
# => #<Errno::ENOENT: No such file or directory - message>
p SystemCallError.new(2)
# => #<Errno::ENOENT: No such file or directory>
p SystemCallError.new(256)
# => #<SystemCallError: Unknown error 256>...