4件ヒット
[1-4件を表示]
(0.014秒)
クラス
モジュール
- FileUtils (1)
- Kernel (1)
-
Rake
:: TaskManager (1)
キーワード
- file (1)
-
in
_ namespace (1) - sh (1)
-
top
_ level (1)
検索結果
先頭4件
-
FileUtils
# sh(*cmd) {|result , status| . . . } (25.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 = #... -
Kernel
# file(*args) { . . . } -> Rake :: FileTask (25.0) -
ファイルタスクを定義します。
...ル名を指定します。
例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets
outfile.puts line
end
end
end
end
@see Rake::Task.define_task... -
Rake
:: Application # top _ level (25.0) -
Rake アプリケーションに与えられたトップレベルのタスク (コマンドラインで指定されたタスク) を実行します。
...
Rake アプリケーションに与えられたトップレベルのタスク
(コマンドラインで指定されたタスク) を実行します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test1
task :test1
task :test2 do
puts "test2"
end
# rake test2 で実行
R... -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (25.0) -
与えられた名前の名前空間でブロックを評価します。
...評価します。
@param name 名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
namespace :sample do
def hoge
puts "hoge"
end
end
task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "hoge"
end...