408件ヒット
[1-100件を表示]
(0.055秒)
別のキーワード
クラス
- Module (12)
-
Rake
:: Application (12) -
Rake
:: FileList (48) -
Rake
:: InvocationChain (24) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (12) -
Rake
:: PackageTask (84) -
Rake
:: TaskArguments (36)
モジュール
- FileUtils (12)
- Kernel (48)
-
Rake
:: TaskManager (84) - RakeFileUtils (12)
キーワード
- == (12)
- [] (36)
- append (24)
-
create
_ rule (12) -
define
_ task (12) - desc (12)
- egrep (12)
-
excluded
_ from _ list? (12) - file (12)
- import (12)
-
in
_ namespace (12) - intern (12)
- load (12)
- lookup (12)
- member? (12)
- name= (12)
-
need
_ tar= (12) -
need
_ tar _ bz2= (12) -
need
_ tar _ gz= (12) -
need
_ zip= (12) -
new
_ scope (12) -
package
_ dir= (12) -
package
_ files= (12) -
rake
_ extension (12) - rule (12)
- sh (12)
-
synthesize
_ file _ task (12) - task (12)
-
tty
_ output= (12) -
when
_ writing (12) -
with
_ defaults (12)
検索結果
先頭5件
- Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain - Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain - Kernel
# file(*args) { . . . } -> Rake :: FileTask - Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array - Module
# rake _ extension(method) { . . . } -> ()
-
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (6115.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...しい Rake::InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
tas......k :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}... -
Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (6109.0) -
与えられた値を追加した Rake::InvocationChain を返します。
...与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。... -
Kernel
# file(*args) { . . . } -> Rake :: FileTask (33.0) -
ファイルタスクを定義します。
...@param args ファイル名と依存ファイル名を指定します。
例:
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
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (33.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
end
//}... -
Module
# rake _ extension(method) { . . . } -> () (27.0) -
与えられたブロック内で既に存在するメソッドを再定義しようとした場合に 警告を表示します。この場合、ブロックは評価されません。
...た場合に
警告を表示します。この場合、ブロックは評価されません。
@param method ブロック内で再定義する予定のメソッド名を指定します。
例:
class String
rake_extension("xyz") do
def xyz
...
end
end
end... -
Rake
:: NameSpace # [](name) -> Rake :: Task (27.0) -
与えられた名前のタスクを返します。
...のタスクを返します。
@param name タスクの名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
namespace :ns do |ns|
task :ts1 do
end
task :ts2 do
end
ns[:ts1] # => <Rake::Task ns:ts1 => []>
ns[:ts2] # => <Rake::Task ns:ts2 => []>
end
//}... -
FileUtils
# sh(*cmd) {|result , status| . . . } (21.0) -
与えられたコマンドを実行します。
...たコマンドを実行します。
与えられた引数が複数の場合、シェルを経由しないでコマンドを実行します。
@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# c......heck 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
:: FileList # egrep(pattern) {|filename , count , line| . . . } (21.0) -
与えられたパターンをファイルリストから grep のように検索します。
...行を出力します。
@param pattern 正規表現を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("sample1", "line1\nline2\nline3\n")
IO.write("sample2", "line1\nline2\nline3\nline4\n")
task default: :test_rake_app
task :test_rake_app do
file_list = File......file_list.egrep(/line/) # => 7
file_list.egrep(/.*/) do |filename, count, line|
"filename = #{filename}, count = #{count}, line = #{line}"
end
end
# => "filename = sample1, count = 1, line = line1\n"
# => "filename = sample1, count = 2, line = line2\n"
# => "filename = sample1, count = 3,... -
Rake
:: TaskManager # [](task _ name , scopes = nil) -> Rake :: Task (21.0) -
与えられたタスク名にマッチするタスクを検索します。
...す。
@param task_name タスク名を指定します。
@param scopes スコープを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application["test_rake_app"] # => <Rake::Task test_rake_app => []>
end
//}...