156件ヒット
[1-100件を表示]
(0.322秒)
ライブラリ
- rake (156)
キーワード
- [] (12)
- clear (12)
-
create
_ rule (12) -
current
_ scope (12) -
define
_ task (12) -
in
_ namespace (12) - intern (12)
-
last
_ comment (12) -
last
_ description (12) -
last
_ description= (12) - lookup (12)
-
synthesize
_ file _ task (12) - tasks (12)
検索結果
先頭5件
-
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (9108.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
//}... -
Rake
:: TaskManager # last _ comment -> String (6124.0) -
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
...
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end
desc "test2"
task :test_rake_a......pp2 do |task|
end
//}... -
Rake
:: TaskManager # last _ description -> String (6124.0) -
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
...
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end
desc "test2"
task :test_rake_a......pp2 do |task|
end
//}... -
Rake
:: TaskManager # current _ scope -> Array (6108.0) -
現在のスコープを返します。
...現在のスコープを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.current_scope # => LL()
end
//}... -
Rake
:: TaskManager # define _ task(task _ class , *args) { . . . } -> Rake :: Task (6108.0) -
タスクを定義します。
...s タスククラスを指定します。
@param args タスクに渡すパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.define_task(Rake::Task, :t) # => <Rake::Task t => []>
end
//}... -
Rake
:: TaskManager # intern(task _ class , task _ name) -> Rake :: Task (6108.0) -
タスクを検索します。
...param task_name タスクの名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.intern(Rake::Task, "test_rake_app") # => <Rake::Task test_rake_app => []>
task.application.intern(Rake::Tas......k, "sample_task") # => <Rake::Task sample_task => []>
end
//}... -
Rake
:: TaskManager # last _ description=(description) (6108.0) -
最新の詳細説明をセットします。
...//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
task.application.last_description # => "test2"
task.application.last_description = "test3"
task.application.last_description # => "test3"
end
desc "test2"
task :......test_rake_app2 do |task|
end
//}... -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (6108.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...します。
@param task_name タスク名を指定します。
@return 与えられたタスク名と同名のファイルが存在する場合は、ファイルタスクを作成して返します。
そうでない場合は nil を返します。
@raise RuntimeError タスクを合成......uby]{
# 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
//}... -
Rake
:: TaskManager # [](task _ name , scopes = nil) -> Rake :: Task (3108.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
//}...