ライブラリ
- ビルトイン (17)
- fileutils (1)
-
irb
/ cmd / help (2) -
irb
/ cmd / load (4) -
irb
/ cmd / subirb (2) -
irb
/ ext / use-loader (2) -
irb
/ extend-command (13) - mkmf (8)
- optparse (12)
- pty (2)
- rake (1)
-
rubygems
/ command (16) -
rubygems
/ command _ manager (4) -
rubygems
/ commands / build _ command (6) -
rubygems
/ commands / cleanup _ command (1) -
rubygems
/ commands / dependency _ command (1) -
rubygems
/ commands / help _ command (3) -
rubygems
/ commands / install _ command (1) -
rubygems
/ commands / list _ command (1) -
rubygems
/ commands / lock _ command (3) -
rubygems
/ commands / stale _ command (1) -
rubygems
/ commands / uninstall _ command (1) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ commands / update _ command (1) -
rubygems
/ exceptions (1) -
rubygems
/ ext / builder (1) -
rubygems
/ version _ option (1) - shell (16)
-
shell
/ builtin-command (3) -
shell
/ command-processor (84) -
shell
/ error (1) -
shell
/ filter (16) -
shell
/ process-controller (5) -
shell
/ system-command (17) - un (1)
クラス
-
Gem
:: Command (16) -
Gem
:: CommandManager (4) -
Gem
:: Commands :: BuildCommand (5) -
Gem
:: Commands :: DependencyCommand (1) -
Gem
:: Commands :: HelpCommand (2) -
Gem
:: Commands :: LockCommand (2) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: Ext :: Builder (1) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: Kill (1) -
IRB
:: ExtendCommand :: Load (1) -
IRB
:: ExtendCommand :: Require (1) -
IRB
:: ExtendCommand :: Source (1) - OptionParser (12)
- Shell (16)
-
Shell
:: BuiltInCommand (2) -
Shell
:: CommandProcessor (83) -
Shell
:: Filter (16) -
Shell
:: ProcessController (5) -
Shell
:: SystemCommand (16)
モジュール
- FileUtils (2)
-
Gem
:: VersionOption (1) -
IRB
:: ContextExtender (2) -
IRB
:: ExtendCommandBundle (12) - Kernel (24)
- PTY (2)
- Signal (2)
キーワード
- < (1)
- > (1)
- >> (1)
- BuildCommand (1)
- BuiltInCommand (1)
- CleanupCommand (1)
- CommandLineError (1)
- CommandNotFound (1)
- CommandProcessor (1)
- EXAMPLES (1)
- ExtendCommandBundle (1)
- HELP (1)
- Help (1)
- HelpCommand (1)
- InstallCommand (1)
- InstallUpdateOptions (1)
- Kill (1)
- ListCommand (1)
- Load (1)
- LocalRemoteOptions (1)
- LockCommand (1)
-
NO
_ OVERRIDE (1) - NoDelegateMethods (1)
-
OVERRIDE
_ ALL (1) -
OVERRIDE
_ PRIVATE _ ONLY (1) - PLATFORMS (1)
- StaleCommand (1)
- SystemCommand (1)
- UninstallCommand (1)
- Win32ネイティブ版Rubyの互換性問題 (1)
- [] (4)
- ` (1)
- active? (2)
-
add
_ common _ option (1) -
add
_ delegate _ command _ to _ shell (1) -
add
_ option (1) -
add
_ platform _ option (1) -
add
_ schedule (1) -
alias
_ command (3) -
alias
_ map (1) - append (1)
- arguments (1)
- atime (1)
- basename (1)
- begins? (1)
- blockdev? (1)
-
build
_ args (1) -
build
_ args= (1) - cat (3)
-
cc
_ command (1) - chardev? (1)
-
check
_ point (1) - chmod (1)
- chown (1)
-
command
_ processor (1) - commands (1)
- complain (1)
- concat (1)
-
cpp
_ command (1) - ctime (1)
-
def
_ builtin _ commands (1) -
def
_ extend _ command (2) -
def
_ system _ command (2) - defaults (1)
- defaults= (1)
-
defaults
_ str (1) - delete (1)
- directory? (1)
- dirname (1)
- each (1)
- echo (3)
- exec (4)
- executable? (1)
-
executable
_ real? (1) - execute (6)
- exist? (1)
- exists? (1)
-
extend
_ object (1) -
extra
_ args= (1) - file? (1)
-
find
_ command (1) -
find
_ command _ possibilities (1) -
find
_ system _ command (3) -
finish
_ all _ jobs (1) - flush (1)
- foreach (1)
- ftype (1)
-
get
_ all _ gem _ names (1) -
get
_ one _ optional _ argument (1) -
get
_ path (1) - getoptlong (1)
- getpty (1)
- glob (3)
- grpowned? (1)
- handles? (1)
- help (1)
- identical? (1)
- initialize (1)
- input= (1)
-
install
_ alias _ method (1) -
install
_ builtin _ commands (1) -
install
_ extend _ commands (2) -
install
_ system _ commands (2) -
irb
_ context (1) -
irb
_ exit (1) -
irb
_ load (1) -
irb
_ original _ method _ name (1) -
irb
_ require (1) - join (1)
- kill (1)
-
kill
_ job (1) - link (1)
-
link
_ command (1) -
load
_ gemspecs (1) - lstat (1)
-
method
_ added (1) - mkdir (1)
- mtime (1)
- name (1)
- new (2)
- notify (3)
- on (12)
- open (1)
-
optparse
/ shellwords (1) - out (3)
- owned? (1)
- pipe? (1)
-
print
_ dependencies (1) - readable? (1)
-
readable
_ real? (1) - readlink (1)
-
register
_ command (1) - rehash (1)
- rename (1)
- rm (1)
- rmdir (1)
-
rubygems
/ commands / build _ command (1) -
rubygems
/ commands / cert _ command (1) -
rubygems
/ commands / cleanup _ command (1) -
rubygems
/ commands / contents _ command (1) -
rubygems
/ commands / dependency _ command (1) -
rubygems
/ commands / help _ command (1) -
rubygems
/ commands / install _ command (1) -
rubygems
/ commands / list _ command (1) -
rubygems
/ commands / lock _ command (1) -
rubygems
/ commands / outdated _ command (1) -
rubygems
/ commands / query _ command (1) -
rubygems
/ commands / search _ command (1) -
rubygems
/ commands / sources _ command (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
/ commands / stale _ command (1) -
rubygems
/ commands / uninstall _ command (1) - run (1)
-
run
_ config (1) - setgid? (1)
- setuid? (1)
- sfork (1)
- sh (1)
-
shell
/ builtin-command (1) -
shell
/ command-processor (1) -
shell
/ system-command (1) -
show
_ help (1) -
show
_ lookup _ failure (1) - size (1)
- size? (1)
- socket? (1)
- spawn (5)
-
spec
_ path (1) - split (1)
- start (1)
-
start
_ export (1) -
start
_ import (1) -
start
_ job (1) - stat (1)
- sticky? (1)
-
super
_ each (1) - symlink (1)
- symlink? (1)
- system (7)
- tee (3)
- terminate (1)
-
terminate
_ job (1) - test (3)
-
to
_ a (1) -
to
_ s (1) - transact (3)
- trap (4)
- truncate (1)
-
try
_ do (2) -
unalias
_ command (2) -
undef
_ system _ command (2) - unlink (1)
- usage (1)
- utime (1)
- wait? (2)
-
which
_ to _ update (1) -
world
_ readable? (1) -
world
_ writable? (1) - writable? (1)
-
writable
_ real? (1) - xpopen (2)
- xsystem (1)
- yaml? (1)
- zero? (1)
- | (1)
- リテラル (1)
検索結果
先頭5件
-
Shell
:: SystemCommand # command -> String (72304.0) -
@todo
@todo
コマンド名を返します。 -
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (54604.0) -
@todo
@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。 -
Shell
:: CommandProcessor . install _ builtin _ commands -> () (54601.0) -
ビルトインコマンドを定義します。
ビルトインコマンドを定義します。 -
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (54601.0) -
全てのシステムコマンドをメソッドとして定義します。
全てのシステムコマンドをメソッドとして定義します。
既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。 -
rubygems
/ commands / lock _ command (54037.0) -
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために 必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために
必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
Usage: gem lock GEMNAME-VERSION [GEMNAME-VERSION ...] [options]
Options:
-s, --[no-]strict 依存関係を満たせない場合に失敗します
Common Options:
-h, --help このコマンドのヘルプを表示します
... -
rubygems
/ commands / help _ command (54019.0) -
Gem コマンドに関するヘルプを提供するためのライブラリです。
Gem コマンドに関するヘルプを提供するためのライブラリです。
Usage: gem help ARGUMENT [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します
... -
rubygems
/ commands / install _ command (54019.0) -
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]
Options:
--platform PLATFORM 指定されたプラットフォームの Gem パッケージをインストールします
-v, --version VERSION 指定されたバージョンの Gem パッケージをインストールします
Install/Update Op... -
rubygems
/ commands / list _ command (54019.0) -
Gem パッケージの名前を前方一致で検索するためのライブラリです。
Gem パッケージの名前を前方一致で検索するためのライブラリです。
Usage: gem list [STRING] [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION 指定されたバージョンの一覧を出力します
-d, --[no-]details Gem パッケージの詳細も表示します
--[no-]versions ... -
rubygems
/ commands / build _ command (54001.0) -
Gem パッケージをビルドするためのライブラリです。
Gem パッケージをビルドするためのライブラリです。
Usage: gem build GEMSPEC_FILE [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します... -
rubygems
/ commands / cleanup _ command (54001.0) -
ローカルにインストールされている古い Gem を削除するライブラリです。
ローカルにインストールされている古い Gem を削除するライブラリです。
Usage: gem cleanup [GEMNAME ...] [options]
Options:
-d, --dryrun
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--... -
rubygems
/ commands / stale _ command (54001.0) -
インストールされている Gem パッケージの一覧をアクセス時刻とともに表示するための ライブラリです。
インストールされている Gem パッケージの一覧をアクセス時刻とともに表示するための
ライブラリです。 -
rubygems
/ commands / uninstall _ command (54001.0) -
Gem パッケージをアンインストールするためのライブラリです。
Gem パッケージをアンインストールするためのライブラリです。
Usage: gem uninstall GEMNAME [GEMNAME ...] [options]
Options:
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --... -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self (46231.0) -
@todo
@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。 -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self (46231.0) -
@todo
@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。 -
Gem
:: CommandManager # find _ command _ possibilities(command _ name) -> Array (45925.0) -
登録されているコマンドでマッチする可能性のあるものを返します。
登録されているコマンドでマッチする可能性のあるものを返します。
@param command_name コマンド名を文字列で指定します。 -
Shell
:: CommandProcessor . unalias _ command(alias) -> self (45904.0) -
エイリアスを削除します。
エイリアスを削除します。
@param alias 削除したいエイリアスを指定します。 -
Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> () (45901.0) -
@todo
@todo
@param delegation_class 処理を委譲したいクラスかモジュールを指定します。
@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...] -
Shell
. install _ system _ commands(pre = "sys _ ") -> () (45673.0) -
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.
@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。
使用例: ls -l | head -n 5 のような例。
require 'shell'
Shell.install_system_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l... -
IRB
:: ExtendCommandBundle . install _ extend _ commands -> object (45619.0) -
定義済みの拡張を読み込みます。
定義済みの拡張を読み込みます。
irb で以下のメソッドが利用できるようになります。(それぞれ 1 つだけ抜粋)
* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help
irb/extend-command が requir... -
Gem
:: Commands :: BuildCommand (45001.0) -
Gem パッケージをビルドするためのクラスです。
Gem パッケージをビルドするためのクラスです。 -
Gem
:: Commands :: CleanupCommand (45001.0) -
ローカルにインストールされている古い Gem を削除するクラスです。
ローカルにインストールされている古い Gem を削除するクラスです。 -
Gem
:: Commands :: HelpCommand (45001.0) -
Gem コマンドに関するヘルプを提供するためのクラスです。
Gem コマンドに関するヘルプを提供するためのクラスです。 -
Gem
:: Commands :: InstallCommand (45001.0) -
Gem パッケージをローカルリポジトリにインストールするためのクラスです。
Gem パッケージをローカルリポジトリにインストールするためのクラスです。 -
Gem
:: Commands :: ListCommand (45001.0) -
Gem パッケージの名前を前方一致で検索するためのクラスです。
Gem パッケージの名前を前方一致で検索するためのクラスです。 -
Gem
:: Commands :: LockCommand (45001.0) -
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために 必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために
必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。 -
Gem
:: Commands :: StaleCommand (45001.0) -
インストールされている Gem パッケージの一覧をアクセス時刻とともに表示するための クラスです。
インストールされている Gem パッケージの一覧をアクセス時刻とともに表示するための
クラスです。 -
Gem
:: Commands :: UninstallCommand (45001.0) -
Gem パッケージをアンインストールするためのクラスです。
Gem パッケージをアンインストールするためのクラスです。 -
Kernel
# link _ command(ldflags , opt = "" , libpath = $ DEFLIBPATH| $ LIBPATH) -> String (37504.0) -
実際にリンクする際に使用するコマンドを返します。
実際にリンクする際に使用するコマンドを返します。
@param ldflags LDFLAGS に追加する値を指定します。
@param opt LIBS に追加する値を指定します。
@param libpath LIBPATH に指定する値を指定します。
@see RbConfig.expand -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (37399.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", "... -
Shell
. unalias _ command(alias) -> () (37096.0) -
commandのaliasを削除します.
commandのaliasを削除します.
@param alias 削除したいエイリアスの名前を文字列で指定します。
@raise NameError alias で指定したコマンドが無い場合に発生します。
使用例: 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.trans... -
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (36964.0) -
@todo
@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。 -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (36925.0) -
与えられたコマンドを削除します。
与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。 -
IRB
:: ContextExtender . install _ extend _ commands -> object (36637.0) -
定義済みの拡張を読み込みます。
定義済みの拡張を読み込みます。
IRB::Context で以下のメソッドが利用できるようになります。
* eval_history=
* use_tracer=
* math_mode=
* use_loader=
* save_history=
irb/extend-command が require された時にライブラリ内部で自動的
に実行されます。
@see IRB::ContextExtender.def_extend_command -
Shell
:: ProcessController # kill _ job(signal , command) -> Integer (36622.0) -
指定されたコマンドにシグナルを送ります。
指定されたコマンドにシグナルを送ります。
@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。
@param command コマンドを指定します。
@see Process.#kill -
Shell
:: CommandProcessor # find _ system _ command(command) (36607.0) -
@todo
@todo -
IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object (36604.0) -
irb に cmd_name で指定したメソッドが実行できるように拡張します。
irb に cmd_name で指定したメソッドが実行できるように拡張します。
@param cmd_name メソッド名を Symbol か文字列で指定します。
cmd_class で指定するクラスの execute メソッドとして定
義してある必要があります。
@param cmd_class 指定した拡張が定義されたクラス名を Symbol、
String、Class のいずれかで指定します。
なお、このクラスは IRB::ExtendCommand ... -
Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array (36301.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename ファイル名を指定します。 -
Gem
:: Commands :: BuildCommand # yaml?(filename) -> bool (36301.0) -
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
@param filename ファイル名を指定します。 -
Gem
:: Commands :: HelpCommand :: EXAMPLES -> String (36301.0) -
使用例を表す文字列です。
使用例を表す文字列です。 -
Gem
:: Commands :: HelpCommand :: PLATFORMS -> String (36301.0) -
プラットフォームに関する記述を格納している文字列です。
プラットフォームに関する記述を格納している文字列です。 -
Gem
:: Commands :: LockCommand # complain(message) -> () (36301.0) -
指定されたメッセージを表示します。--strict が有効な場合は例外が発生します。
指定されたメッセージを表示します。--strict が有効な場合は例外が発生します。
@param message 表示するメッセージを指定します。
@raise Gem::Exception コマンドラインオプションに --strict が指定されている場合に発生します。 -
Shell
:: SystemCommand # kill(signal) -> Integer (36301.0) -
自身のプロセスにシグナルを送ります。
自身のプロセスにシグナルを送ります。
@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。
@see Process.#kill -
rubygems
/ commands / cert _ command (36019.0) -
Gem パッケージの証明書や署名の設定を管理するためのライブラリです。
Gem パッケージの証明書や署名の設定を管理するためのライブラリです。
Usage: gem cert [options]
Options:
-a, --add CERT 信頼された証明書を追加します
-l, --list 信頼されている証明書の一覧を表示します
-r, --remove STRING STRING を含む証明書を削除します
-b, --build EMAIL_ADDR EMAIL_ADDR ... -
rubygems
/ commands / contents _ command (36019.0) -
インストールされている Gem パッケージに含まれているファイルリストを表示するためのライブラリです。
インストールされている Gem パッケージに含まれているファイルリストを表示するためのライブラリです。
Usage: gem contents GEMNAME [options]
Options:
-v, --version VERSION 指定されたバージョンの Gem パッケージの内容を表示します
-s, --spec-dir a,b,c 指定されたパス以下にある Gem パッケージを検索します
-l, --[no-]lib-only Gem パッケージの lib ディ... -
rubygems
/ commands / dependency _ command (36019.0) -
インストールされている Gem パッケージの依存関係を表示するためのライブラリです。
インストールされている Gem パッケージの依存関係を表示するためのライブラリです。
Usage: gem dependency GEMNAME [options]
Options:
-v, --version VERSION 指定したバージョンの依存関係を表示します
--platform PLATFORM 指定したプラットフォームの依存関係を表示します
-R, --[no-]reverse-dependencies この Gem を使用している Gem を表示します
-p, --p... -
rubygems
/ commands / outdated _ command (36019.0) -
更新が必要な Gem パッケージの一覧を出力するためのライブラリです。
更新が必要な Gem パッケージの一覧を出力するためのライブラリです。
Usage: gem outdated [options]
Options:
--platform PLATFORM 指定されたプラットフォームに関する情報を表示します
Local/Remote Options:
-l, --local 操作をローカルに限定します
-r, --remote 操作をリモートに限定します
-b, --both ... -
rubygems
/ commands / query _ command (36019.0) -
Gem パッケージの情報を検索するためのライブラリです。
Gem パッケージの情報を検索するためのライブラリです。
Usage: gem query [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION Specify version of gem to query
-n, --name-matches REGEXP 与えられた正規表現にマッチする Gem パッケージを
検... -
rubygems
/ commands / search _ command (36019.0) -
指定された文字列を含む Gem パッケージを全て表示するためのライブラリです。
指定された文字列を含む Gem パッケージを全て表示するためのライブラリです。
Usage: gem search [STRING] [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION Specify version of gem to search
-d, --[no-]details Display detailed information of g... -
rubygems
/ commands / sources _ command (36019.0) -
Gem パッケージの取得元の情報を管理するためのライブラリです。
Gem パッケージの取得元の情報を管理するためのライブラリです。
Usage: gem sources [options]
Options:
-a, --add SOURCE_URI 取得元を追加します
-l, --list 取得元一覧を表示します
-r, --remove SOURCE_URI 取得元を削除します
-u, --update 取得元のキャッシュを更新します
-c, --clear-... -
rubygems
/ commands / specification _ command (36019.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
Usage: gem specification [GEMFILE] [options]
Options:
-v, --version VERSION Specify version of gem to examine
--platform PLATFORM Specify the platform of gem to specification
--all ... -
Gem
:: CommandLineError (36001.0) -
コマンドラインの例外です。
コマンドラインの例外です。 -
IRB
:: ExtendCommandBundle (36001.0) -
irb のコマンドを拡張するためのモジュールです。
irb のコマンドを拡張するためのモジュールです。 -
Shell
:: BuiltInCommand (36001.0) -
クラスとして実装されている全てのビルトインコマンドのスーパークラスです。
クラスとして実装されている全てのビルトインコマンドのスーパークラスです。 -
shell
/ builtin-command (36001.0) -
Shell で使用するビルトインコマンドを定義しているライブラリです。
Shell で使用するビルトインコマンドを定義しているライブラリです。 -
shell
/ command-processor (36001.0) -
Shell で使用可能なコマンドの大半を定義するライブラリです。
Shell で使用可能なコマンドの大半を定義するライブラリです。 -
shell
/ system-command (36001.0) -
-
Shell
. def _ system _ command(command , path = command) -> nil (28438.0) -
Shell のメソッドとして command を登録します.
Shell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッドとして定義するコマンドを文字列で指定します。
@param path command のパスを指定します。
指定しない場合はcommand と同じになります。
例)
require 'shell'
Shell.def_system_command "ls"
# ls ... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (28363.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 {|l|
puts l
}
}
rescue NameError => err
puts ... -
Gem
:: CommandManager # find _ command(command _ name) -> Gem :: Command | nil (28246.0) -
登録されているコマンドからマッチしたものを返します。
登録されているコマンドからマッチしたものを返します。
@param command_name コマンド名を文字列で指定します。
@return Gem::Command のサブクラスのインスタンスを返します。
@raise RuntimeError マッチする可能性のあるコマンドが複数ある場合に発生します。
また、マッチするコマンドが無かった場合にも発生します。 -
Gem
:: CommandManager # register _ command(command _ name) -> false (27925.0) -
コマンドを自身に登録します。
コマンドを自身に登録します。
@param command_name コマンド名をシンボルで指定します。 -
Shell
# command _ processor -> Shell :: CommandProcessor (27904.0) -
@todo
@todo -
Shell
:: ProcessController # add _ schedule(command) -> () (27622.0) -
指定されたコマンドを待機ジョブとして登録します。 ただし、実行中のジョブが存在しない場合は、そのジョブを直ちに実行します。
指定されたコマンドを待機ジョブとして登録します。
ただし、実行中のジョブが存在しない場合は、そのジョブを直ちに実行します。
@param command コマンドを指定します。 -
Shell
# find _ system _ command(command) (27607.0) -
@todo
@todo -
Shell
:: Filter # find _ system _ command(command) (27607.0) -
@todo
@todo -
Kernel
# cpp _ command(outfile , opt = "") -> String (27604.0) -
実際にプリプロセッサを実行する際に使用するコマンドを返します。
実際にプリプロセッサを実行する際に使用するコマンドを返します。
@param outfile 出力ファイルの名前を指定します。
@param opt プリプロセッサに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
Shell
:: CommandProcessor # delete(*filename) -> Integer (27601.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: CommandProcessor # executable?(file) -> bool (27601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
:: CommandProcessor # executable _ real?(file) -> bool (27601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
Shell
:: CommandProcessor # file?(file) -> bool (27601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#file? -
Shell
:: CommandProcessor # readable?(file) -> bool (27601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable? -
Shell
:: CommandProcessor # readable _ real?(file) -> bool (27601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable_real? -
Shell
:: CommandProcessor # writable?(file) -> bool (27601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable? -
Shell
:: CommandProcessor # writable _ real?(file) -> bool (27601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable_real? -
Shell
:: CommandProcessor # glob(pattern) -> Shell :: Filter (27355.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
実行すると, それらを内容とする Filter オブジェクトを返します.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
... -
Shell
:: CommandProcessor . alias _ map -> Hash (27349.0) -
Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。
Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。 -
Gem
:: Command # defaults _ str -> String (27319.0) -
このメソッドはサブクラスで再定義されます。 コマンドのオプションで使用するデフォルト値を表示するために使用する文字列を返します。
このメソッドはサブクラスで再定義されます。
コマンドのオプションで使用するデフォルト値を表示するために使用する文字列を返します。
@see Gem::Command#arguments -
IRB
:: ExtendCommandBundle :: OVERRIDE _ ALL -> 1 (27319.0) -
irb でコマンドのエイリアスを定義する際に、既にこれからエイリアス先に指 定したメソッド名と同名のメソッドが定義済みであった場合でも、常にエイリ アスを定義する事を指定するフラグです。
irb でコマンドのエイリアスを定義する際に、既にこれからエイリアス先に指
定したメソッド名と同名のメソッドが定義済みであった場合でも、常にエイリ
アスを定義する事を指定するフラグです。
@see IRB::ExtendCommandBundle.def_extend_command -
IRB
:: ExtendCommandBundle :: OVERRIDE _ PRIVATE _ ONLY -> 2 (27319.0) -
irb でコマンドのエイリアスを定義する際に、既にこれからエイリアス先に指 定したメソッド名と同名の public メソッドが定義済みではなかった場合のみ、 エイリアスを定義する事を指定するフラグです。
irb でコマンドのエイリアスを定義する際に、既にこれからエイリアス先に指
定したメソッド名と同名の public メソッドが定義済みではなかった場合のみ、
エイリアスを定義する事を指定するフラグです。
@see IRB::ExtendCommandBundle.def_extend_command -
Kernel
# cc _ command(opt = "") -> String (27304.0) -
実際にコンパイルする際に使用するコマンドを返します。
実際にコンパイルする際に使用するコマンドを返します。
@param opt コンパイラに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
FileUtils
. commands -> Array (27301.0) -
何らかのオプションを持つメソッド名の配列を返します。
何らかのオプションを持つメソッド名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.commands # => ["chmod", "cp", "cp_r", "install", ...]
//} -
Gem
:: Command # defaults -> Hash (27301.0) -
デフォルトのオプションを返します。
デフォルトのオプションを返します。 -
Gem
:: Command # defaults=(hash) (27301.0) -
コマンドで使用するデフォルトのオプションをセットします。
コマンドで使用するデフォルトのオプションをセットします。
@param hash オプションをハッシュで指定します。 -
Gem
:: Command # get _ all _ gem _ names -> Array (27301.0) -
コマンドラインで与えられた Gem の名前を全て取得して返します。
コマンドラインで与えられた Gem の名前を全て取得して返します。
@raise Gem::CommandLineError コマンドライン引数から Gem の名前を取得できない場合に発生します。 -
Gem
:: Command # get _ one _ optional _ argument -> String (27301.0) -
コマンドラインからオプショナルな引数を取得して返します。
コマンドラインからオプショナルな引数を取得して返します。
@return 一つ以上、指定した場合は最初の値を返します。一つも指定していない場合は nil を返します。 -
Gem
:: Command # handle _ options(args) (27301.0) -
与えられた引数のリストをパースして結果を記録します。
与えられた引数のリストをパースして結果を記録します。
@param args 引数のリストを指定します。 -
Gem
:: Command # handles?(args) -> bool (27301.0) -
与えられた引数リストを処理することが出来れば真を返します。処理できない場合は偽を返します。
与えられた引数リストを処理することが出来れば真を返します。処理できない場合は偽を返します。
@param args 引数リストを指定子明日。 -
Gem
:: Command # show _ help -> () (27301.0) -
コマンドの使用方法を表示します。
コマンドの使用方法を表示します。 -
Gem
:: Command # show _ lookup _ failure(gem _ name , version , errors = nil) -> () (27301.0) -
Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。
Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。
@param gem_name Gem の名前を指定します。
@param version Gem のバージョンを指定します。
@param errors Gem が見つからなかった理由を表すオブジェクトを格納した配列を指定します。 -
Gem
:: Command . build _ args -> Array (27301.0) -
Gem をビルドするときに使用するパラメータを返します。
Gem をビルドするときに使用するパラメータを返します。 -
Gem
:: Command . build _ args=(value) (27301.0) -
Gem をビルドするときに使用するパラメータをセットします。
Gem をビルドするときに使用するパラメータをセットします。
@param value Gem をビルドするときに使用するパラメータを指定します。 -
Gem
:: Command :: HELP -> String (27301.0) -
ヘルプメッセージを表す文字列です。
ヘルプメッセージを表す文字列です。 -
Gem
:: Commands :: LockCommand # spec _ path(gem _ full _ name) -> String (27301.0) -
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
@param gem_full_name Gem パッケージの名前を指定します。 -
IRB
:: ExtendCommandBundle # install _ alias _ method(to , from , override = NO _ OVERRIDE) (27301.0) -
メソッドのエイリアスを定義します。ライブラリ内部で使用します。
メソッドのエイリアスを定義します。ライブラリ内部で使用します。
@param to 新しいメソッド名を Symbol か文字列で指定します。
@param from 元のメソッド名を Symbol か文字列で指定します。
@param override 新しいメソッド名が定義済みであった場合にそのメソッドを
上書きするかどうかを
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (27301.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute -
IRB
:: ExtendCommandBundle . irb _ original _ method _ name(method _ name) -> String (27301.0) -
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ ラリ内部で使用します。
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ
ラリ内部で使用します。
@param method_name メソッド名を Symbol か文字列で指定します。
@see IRB::ExtendCommandBundle#install_alias_method -
Shell
:: CommandProcessor # blockdev?(file) -> bool (27301.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev? -
Shell
:: CommandProcessor # finish _ all _ jobs (27301.0) -
@todo
@todo -
Shell
:: CommandProcessor # identical? (27301.0) -
@todo
@todo -
Shell
:: CommandProcessor # link(old , new) -> 0 (27301.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new ファイル名を表す文字列を指定します。
@see File.link -
Shell
:: CommandProcessor # lstat(filename) -> File :: Stat (27301.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat