444件ヒット
[1-100件を表示]
(0.045秒)
クラス
- Module (12)
-
Rake
:: Application (12) -
Rake
:: FileList (72) -
Rake
:: InvocationChain (24) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (12) -
Rake
:: PackageTask (84) -
Rake
:: TaskArguments (36)
モジュール
- FileUtils (12)
- Kernel (60)
-
Rake
:: TaskManager (84) - RakeFileUtils (12)
キーワード
- == (12)
- [] (36)
- append (24)
-
create
_ rule (12) -
define
_ task (12) - desc (12)
- egrep (12)
-
excluded
_ from _ list? (12) - ext (12)
- file (12)
- import (12)
-
in
_ namespace (12) - intern (12)
- load (12)
- lookup (12)
- member? (12)
- name= (12)
- namespace (12)
-
need
_ tar= (12) -
need
_ tar _ bz2= (12) -
need
_ tar _ gz= (12) -
need
_ zip= (12) -
new
_ scope (12) -
package
_ dir= (12) -
package
_ files= (12) - pathmap (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 - FileUtils
# sh(*cmd) {|result , status| . . . }
-
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (6121.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 (39.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
//}... -
FileUtils
# sh(*cmd) {|result , status| . . . } (27.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 = #{res.exitstatus})"
end
end
@see Kernel.#exec, Kernel.#system... -
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
//}... -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (27.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...クを合成します。
@param task_name タスク名を指定します。
@return 与えられたタスク名と同名のファイルが存在する場合は、ファイルタスクを作成して返します。
そうでない場合は nil を返します。
@raise RuntimeError タス......by]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO.write("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_file => []>
end
//}... -
Kernel
# task(*args) { . . . } -> Rake :: Task (21.0) -
Rake タスクを定義します。
...
Rake タスクを定義します。
@param args タスク名と依存タスクを指定します。
例:
task :clobber => [:clean] do
rm_rf "html"
end
@see Rake::Task.define_task...