4件ヒット
[1-4件を表示]
(0.112秒)
ライブラリ
- rake (1)
-
rubygems
/ user _ interaction (1) -
webrick
/ httpresponse (2)
クラス
-
Gem
:: StreamUI (1) -
WEBrick
:: HTTPResponse (2)
モジュール
- FileUtils (1)
キーワード
- sh (1)
-
status
_ line (1) -
terminate
_ interaction (1)
検索結果
先頭4件
-
WEBrick
:: HTTPResponse # status=(status) (72922.0) -
レスポンスのステータスコードを整数で指定します。 reason_phrase も適切なものに設定されます。
レスポンスのステータスコードを整数で指定します。
reason_phrase も適切なものに設定されます。
@param status ステータスコードを整数で指定します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.status = 404
p res.reason_phrase #=> "Not Found" -
Gem
:: StreamUI # terminate _ interaction(status = 0) -> () (18607.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param status 終了ステータスを指定します。デフォルトは 0 (成功) です。
@raise Gem::SystemExitException このメソッドを呼び出すと必ず発生する例外です。 -
WEBrick
:: HTTPResponse # status _ line -> String (18322.0) -
HTTP のステータスラインを CR+LF 付き文字列で返します。
HTTP のステータスラインを CR+LF 付き文字列で返します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.status = 404
p res.status_line #=> "HTTP/1.1 404 Not Found \r\n" -
FileUtils
# sh(*cmd) {|result , status| . . . } (322.0) -
与えられたコマンドを実行します。
与えられたコマンドを実行します。
与えられた引数が複数の場合、シェルを経由しないでコマンドを実行します。
@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #...