48件ヒット
[1-48件を表示]
(0.011秒)
クラス
-
Rake
:: Application (12)
モジュール
- FileUtils (12)
- Kernel (12)
-
Rake
:: TaskManager (12)
キーワード
- file (12)
-
in
_ namespace (12) - sh (12)
-
top
_ level (12)
検索結果
先頭4件
-
FileUtils
# sh(*cmd) {|result , status| . . . } (9.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... -
Kernel
# file(*args) { . . . } -> Rake :: FileTask (9.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 (9.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 (9.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...