36件ヒット
[1-36件を表示]
(0.040秒)
別のキーワード
検索結果
先頭3件
-
FileUtils
# ruby(*args) {|result , status| . . . } (102.0) -
与えられた引数で Ruby インタプリタを実行します。
与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh -
FileUtils
# sh(*cmd) {|result , status| . . . } (102.0) -
与えられたコマンドを実行します。
...参照してください。
例:
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 = #{res.exitstatus})"
end
end
@see Kernel.#exec, Kernel.#system... -
Rake
:: Application # tty _ output=(tty _ output _ state) (102.0) -
TTY に対する出力状態を上書きします。
...y_output_state 変更後の状態を指定します
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.tty_output? # => false
Rake.application.tty_output = "debug output" # => "debug output"
Rake.applicat...