ライブラリ
クラス
-
Gem
:: Command (1) -
Gem
:: CommandManager (1) -
Gem
:: Commands :: BuildCommand (2) -
Gem
:: Commands :: DependencyCommand (1) -
Gem
:: Commands :: UpdateCommand (1) - Shell (2)
-
Shell
:: CommandProcessor (9) -
Shell
:: Filter (2) -
Shell
:: SystemCommand (15)
モジュール
- Kernel (3)
キーワード
- active? (1)
- directory? (1)
- each (1)
-
find
_ command _ possibilities (1) -
find
_ system _ command (3) - flush (1)
- ftype (1)
-
get
_ all _ gem _ names (1) - input= (1)
- kill (1)
-
load
_ gemspecs (1) - mkdir (1)
- name (1)
- notify (3)
-
print
_ dependencies (1) - start (1)
-
start
_ export (1) -
start
_ import (1) - sticky? (1)
-
super
_ each (1) - symlink (1)
- symlink? (1)
- system (3)
- terminate (1)
-
try
_ do (2) - wait? (1)
-
which
_ to _ update (1) - xsystem (1)
- yaml? (1)
検索結果
先頭5件
-
Shell
:: SystemCommand # command -> String (81307.0) -
@todo
@todo
コマンド名を返します。 -
Shell
:: CommandProcessor # find _ system _ command(command) (54910.0) -
@todo
@todo -
Gem
:: Commands :: BuildCommand # yaml?(filename) -> bool (54604.0) -
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
@param filename ファイル名を指定します。 -
Gem
:: CommandManager # find _ command _ possibilities(command _ name) -> Array (46228.0) -
登録されているコマンドでマッチする可能性のあるものを返します。
登録されているコマンドでマッチする可能性のあるものを返します。
@param command_name コマンド名を文字列で指定します。 -
Shell
# find _ system _ command(command) (45910.0) -
@todo
@todo -
Shell
:: Filter # find _ system _ command(command) (45910.0) -
@todo
@todo -
Shell
:: CommandProcessor # symlink(old , new) -> 0 (45604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink -
Shell
:: CommandProcessor # symlink?(file) -> bool (45604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#symlink? -
Shell
:: SystemCommand # kill(signal) -> Integer (45304.0) -
自身のプロセスにシグナルを送ります。
自身のプロセスにシグナルを送ります。
@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。
@see Process.#kill -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (37645.0) -
command を実行する.
command を実行する.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT -
Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array (36604.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename ファイル名を指定します。 -
Shell
:: CommandProcessor # directory?(file) -> bool (36604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
Shell
:: CommandProcessor # ftype(filename) -> String (36604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype -
Shell
:: CommandProcessor # sticky?(file) -> bool (36604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#sticky? -
Shell
:: CommandProcessor # notify(*opts) { . . . } -> () (36304.0) -
@todo
@todo -
Shell
:: SystemCommand # flush -> () (36304.0) -
@todo
@todo -
Shell
:: SystemCommand # notify(*opts) -> String (36304.0) -
@todo
@todo
@param opts
@see Shell#notify -
Shell
:: SystemCommand # notify(*opts) {|message| . . . } -> String (36304.0) -
@todo
@todo
@param opts
@see Shell#notify -
Shell
:: SystemCommand # name -> String (36007.0) -
@todo
@todo
コマンド名を返します。 -
Shell
# system(command , *opts) -> Shell :: SystemCommand (28645.0) -
command を実行する.
command を実行する.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT -
Shell
:: Filter # system(command , *opts) -> Shell :: SystemCommand (28645.0) -
command を実行する.
command を実行する.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT -
Kernel
# xsystem(command , opts = nil) -> () (27925.0) -
Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー 出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。
Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー
出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
:werror というキーに真を指定すると
@see Kernel.#system -
Kernel
# try _ do(src , command , *opts) -> () (27628.0) -
@param src C プログラムのソースコードを指定します。
@param src C プログラムのソースコードを指定します。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
@raise RuntimeError 開発環境がインストールされていない場合に発生します。
@see Kernel#xsystem -
Kernel
# try _ do(src , command , *opts) { . . . } -> () (27628.0) -
@param src C プログラムのソースコードを指定します。
@param src C プログラムのソースコードを指定します。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
@raise RuntimeError 開発環境がインストールされていない場合に発生します。
@see Kernel#xsystem -
Gem
:: Command # get _ all _ gem _ names -> Array (27604.0) -
コマンドラインで与えられた Gem の名前を全て取得して返します。
コマンドラインで与えられた Gem の名前を全て取得して返します。
@raise Gem::CommandLineError コマンドライン引数から Gem の名前を取得できない場合に発生します。 -
Gem
:: Commands :: DependencyCommand # print _ dependencies(spec , level = 0) -> String (27304.0) -
依存関係を表す文字列を返します。
依存関係を表す文字列を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param level 依存関係の深さを指定します。 -
Shell
:: SystemCommand # active? -> bool (27304.0) -
@todo
@todo -
Shell
:: SystemCommand # each(rs = nil) {|line| . . . } (27304.0) -
@todo
@todo
@param rs -
Shell
:: SystemCommand # wait? -> bool (27304.0) -
@todo
@todo -
Shell
:: SystemCommand # input=(inp) (27004.0) -
@todo
@todo -
Shell
:: SystemCommand # start -> () (27004.0) -
@todo
@todo -
Shell
:: SystemCommand # start _ export (27004.0) -
@todo
@todo -
Shell
:: SystemCommand # start _ import -> () (27004.0) -
@todo
@todo -
Shell
:: SystemCommand # super _ each -> () (27004.0) -
@todo
@todo
Shell::Filter#each です。 -
Shell
:: SystemCommand # terminate -> () (27004.0) -
@todo
@todo -
Gem
:: Commands :: UpdateCommand # which _ to _ update(highest _ installed _ gems , gem _ names) -> Array (18604.0) -
更新が必要な Gem のリストを返します。
更新が必要な Gem のリストを返します。 -
Shell
:: CommandProcessor # mkdir(*path) -> Array (18304.0) -
Dir.mkdirと同じです。 (複数可)
Dir.mkdirと同じです。 (複数可)
@param path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=> ["foo"]
rescue => err
puts err
end