527件ヒット
[1-100件を表示]
(0.118秒)
別のキーワード
ライブラリ
- ビルトイン (165)
-
drb
/ extservm (22) - fileutils (11)
-
irb
/ cmd / nop (22) -
irb
/ extend-command (66) -
rubygems
/ command (99) -
rubygems
/ command _ manager (11) -
rubygems
/ ext / builder (11) - shell (30)
-
shell
/ command-processor (84) -
shell
/ system-command (6)
クラス
-
DRb
:: ExtServManager (22) -
Gem
:: Command (99) -
Gem
:: CommandManager (11) -
Gem
:: Ext :: Builder (11) - IO (154)
-
IRB
:: ExtendCommand :: Nop (22) - Shell (30)
-
Shell
:: CommandProcessor (84) -
Shell
:: SystemCommand (6)
モジュール
- FileUtils (11)
-
IRB
:: ContextExtender (22) -
IRB
:: ExtendCommandBundle (44) - Process (11)
キーワード
-
add
_ common _ option (11) -
add
_ delegate _ command _ to _ shell (6) -
add
_ specific _ extra _ args (11) -
alias
_ command (18) -
alias
_ map (6) -
build
_ args (11) -
build
_ args= (11) - command= (11)
- commands (11)
-
def
_ builtin _ commands (6) -
def
_ extend _ command (22) -
def
_ system _ command (12) - exec (11)
- execute (11)
-
extend
_ object (11) -
extra
_ args (11) -
extra
_ args= (11) - initialize (6)
-
install
_ builtin _ commands (6) -
install
_ extend _ commands (22) -
install
_ system _ commands (12) - instance (11)
-
irb
_ original _ method _ name (11) -
method
_ added (6) - new (23)
- popen (154)
- run (11)
-
run
_ config (6) -
specific
_ extra _ args (11) -
specific
_ extra _ args _ hash (11) -
unalias
_ command (12) -
undef
_ system _ command (12)
検索結果
先頭5件
- DRb
:: ExtServManager . command -> { String => String|[String] } - Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () - Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self - Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self - Shell
:: CommandProcessor . undef _ system _ command(command) -> self
-
DRb
:: ExtServManager . command -> { String => String|[String] } (18108.0) -
サービスを起動するためのコマンドを指定するための Hash を 返します。
...ービスを起動するためのコマンドです。
この Hash を変更することでサービスを定義します。
DRb::ExtServManager.command= で Hash 自体を
変更することでも同じことができます。
コマンドは文字列、もしくは文字列の配列で指定し... -
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (9322.0) -
@todo
...@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。... -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self (9211.0) -
@todo
...@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。... -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self (9211.0) -
@todo
...@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。... -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (9209.0) -
与えられたコマンドを削除します。
...与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。... -
Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> () (9201.0) -
@todo
...@todo
@param delegation_class 処理を委譲したいクラスかモジュールを指定します。
@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]... -
IRB
:: ExtendCommandBundle . install _ extend _ commands -> object (9107.0) -
定義済みの拡張を読み込みます。
...* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help
irb/extend-command が require された時にライブラリ内部で自動的
に実行されます。
@see IRB::ExtendCommandBundle.install_extend_commands... -
IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object (9102.0) -
irb に cmd_name で指定したメソッドが実行できるように拡張します。
...ス名を Symbol、
String、Class のいずれかで指定します。
なお、このクラスは IRB::ExtendCommand 以下で定義
する必要があります。
@param load_file 指定したメソッドが定義されたファイル名を指......す。複数指定する事ができます。フラグは
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_ONLY、
IRB::ExtendCommandBundle::OVERRIDE_ALL のいずれか
を指定します。... -
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (9102.0) -
@todo
@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。 -
Shell
:: CommandProcessor . unalias _ command(alias) -> self (9102.0) -
エイリアスを削除します。
エイリアスを削除します。
@param alias 削除したいエイリアスを指定します。 -
Shell
:: CommandProcessor . install _ builtin _ commands -> () (9101.0) -
ビルトインコマンドを定義します。
ビルトインコマンドを定義します。 -
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (9101.0) -
全てのシステムコマンドをメソッドとして定義します。
全てのシステムコマンドをメソッドとして定義します。
既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。 -
Shell
. def _ system _ command(command , path = command) -> nil (6350.0) -
Shell のメソッドとして command を登録します.
...ell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッドと......文字列で指定します。
@param path command のパスを指定します。
指定しない場合はcommand と同じになります。
例)
require 'shell'
Shell.def_system_command "ls"
# ls を定義
Shell.def_system_command "sys_sort", "sort"
# sortコマンドをsy... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (6337.0) -
commandを削除します.
...
commandを削除します.
@param command 削除するコマンドの文字列を指定します。
動作例:
require 'shell'
Shell.def_system_command("ls")
# ls を定義
Shell.undef_system_command("ls")
# ls を 削除
sh = Shell.new
begin
sh.transact {
ls("-l").each... -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (6249.0) -
コマンドの別名(エイリアス)を作成します。 コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
...マンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
@param alias エイリアスの名前を文字列で指定します.
@param command コマンド名を文字列で指定します.
@param opts command で指定したコマンドのオプションを......指定します.
使用例: ls -la | sort -k 5 のような例。
require 'shell'
Shell.def_system_command("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}...