ライブラリ
- rake (124)
-
rake
/ gempackagetask (5) -
rake
/ loaders / makefile (1) -
rake
/ packagetask (28) -
rake
/ rdoctask (20) -
rake
/ testtask (18)
クラス
- Module (1)
-
Rake
:: Application (11) -
Rake
:: DefaultLoader (1) -
Rake
:: EarlyTime (2) -
Rake
:: FileCreationTask (2) -
Rake
:: FileList (22) -
Rake
:: FileTask (2) -
Rake
:: GemPackageTask (5) -
Rake
:: InvocationChain (3) -
Rake
:: InvocationChain :: EmptyInvocationChain (3) -
Rake
:: MakefileLoader (1) -
Rake
:: NameSpace (2) -
Rake
:: PackageTask (28) -
Rake
:: RDocTask (20) -
Rake
:: Task (28) -
Rake
:: TaskArguments (9) -
Rake
:: TestTask (18) - String (5)
モジュール
- FileUtils (4)
- Kernel (9)
-
Rake
:: Cloneable (2) -
Rake
:: TaskManager (15) - RakeFileUtils (3)
キーワード
- * (1)
- <=> (1)
- == (1)
- [] (3)
- actions (1)
-
add
_ description (1) -
add
_ loader (1) - append (2)
- application (1)
- application= (1)
-
arg
_ description (1) -
arg
_ names (1) - clear (2)
-
clear
_ actions (1) -
clear
_ exclude (1) -
clear
_ prerequisites (1) - clone (1)
- comment (1)
- comment= (1)
-
create
_ rule (1) -
current
_ scope (1) - define (4)
-
define
_ task (1) - desc (1)
- directory (1)
- dup (1)
- each (1)
- egrep (1)
- enhance (1)
-
enhance
_ with _ matching _ rule (1) - exclude (1)
-
excluded
_ from _ list? (1) - execute (1)
- existing (1)
- existing! (1)
- ext (2)
- external (1)
- external= (1)
- file (1)
-
file
_ create (1) -
full
_ comment (1) -
gem
_ file (1) -
gem
_ spec (1) -
gem
_ spec= (1) - gsub (1)
- gsub! (1)
- import (2)
-
in
_ namespace (1) - include (1)
- init (3)
- inspect (2)
- intern (1)
- investigation (1)
- invoke (1)
-
is
_ a? (1) -
kind
_ of? (1) -
last
_ comment (1) -
last
_ description (1) -
last
_ description= (1) - libs (1)
- libs= (1)
- load (2)
-
load
_ rakefile (1) - loader (1)
- loader= (1)
- lookup (2)
- main (1)
- main= (1)
- member? (2)
- multitask (1)
- name (5)
- name= (3)
- names (1)
- namespace (1)
-
need
_ tar (1) -
need
_ tar= (1) -
need
_ tar _ bz2 (1) -
need
_ tar _ bz2= (1) -
need
_ tar _ gz (1) -
need
_ tar _ gz= (1) -
need
_ zip (1) -
need
_ zip= (1) - needed? (3)
-
new
_ scope (1) - nowrite (1)
-
option
_ list (1) -
option
_ string (1) -
original
_ dir (1) -
package
_ dir (1) -
package
_ dir= (1) -
package
_ dir _ path (1) -
package
_ files (1) -
package
_ files= (1) -
package
_ name (1) - pathmap (2)
-
pathmap
_ explode (1) -
pathmap
_ partial (1) -
pathmap
_ replace (1) - pattern (1)
- pattern= (1)
- prerequisites (1)
- quote (1)
-
rake
_ extension (1) - rakefile (1)
-
rdoc
_ dir (1) -
rdoc
_ dir= (1) -
rdoc
_ files (1) -
rdoc
_ files= (1) - reenable (1)
- resolve (1)
-
resolve
_ args (1) - ruby (1)
-
ruby
_ opts (1) -
ruby
_ opts= (1) - rule (1)
- run (1)
-
safe
_ ln (1) - scope (1)
-
set
_ arg _ names (1) - sh (1)
- source (1)
- sources (1)
- sources= (1)
-
split
_ all (1) - sub (1)
- sub! (1)
-
synthesize
_ file _ task (1) -
tar
_ bz2 _ file (1) -
tar
_ command (1) -
tar
_ command= (1) -
tar
_ gz _ file (1) - task (1)
- tasks (2)
- template (1)
- template= (1)
-
test
_ files= (1) -
tgz
_ file (1) - title (1)
- title= (1)
-
to
_ a (1) -
to
_ ary (1) -
to
_ hash (1) -
to
_ s (6) -
top
_ level (1) -
top
_ level _ tasks (1) -
tty
_ output= (1) - verbose (2)
- verbose= (1)
- version (1)
- version= (1)
- warning (1)
- warning= (1)
-
when
_ writing (1) -
with
_ defaults (1) -
zip
_ command (1) -
zip
_ command= (1) -
zip
_ file (1)
検索結果
先頭5件
-
Rake
:: Application # rakefile -> String (51358.0) -
実際に使用されている Rakefile の名前を返します。
実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//} -
Rake
:: Application # load _ rakefile (51304.0) -
Rakefile を探してロードします。
Rakefile を探してロードします。 -
Module
# rake _ extension(method) { . . . } -> () (42325.0) -
与えられたブロック内で既に存在するメソッドを再定義しようとした場合に 警告を表示します。この場合、ブロックは評価されません。
与えられたブロック内で既に存在するメソッドを再定義しようとした場合に
警告を表示します。この場合、ブロックは評価されません。
@param method ブロック内で再定義する予定のメソッド名を指定します。
例:
class String
rake_extension("xyz") do
def xyz
...
end
end
end -
Rake
:: TaskManager # intern(task _ class , task _ name) -> Rake :: Task (33451.0) -
タスクを検索します。
タスクを検索します。
タスクが見つかれば見つかったタスクを返します。
見つからなければ、与えられた型のタスクを作成して返します。
@param task_class タスクのクラスを指定します。
@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::... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (33427.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain:... -
Rake
:: TaskArguments # new _ scope(names) -> Rake :: TaskArguments (33427.0) -
与えられたパラメータ名のリストを使用して新しい Rake::TaskArguments を作成します。
与えられたパラメータ名のリストを使用して新しい Rake::TaskArguments を作成します。
@param names パラメータ名のリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
new_arguments = arguments.new_scope(["nam... -
Rake
:: TaskManager # [](task _ name , scopes = nil) -> Rake :: Task (33415.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
//} -
Rake
:: TaskManager # define _ task(task _ class , *args) { . . . } -> Rake :: Task (33397.0) -
タスクを定義します。
タスクを定義します。
@param task_class タスククラスを指定します。
@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 # lookup(task _ name , initial _ scope = nil) -> Rake :: Task | nil (33397.0) -
与えられたタスク名にマッチするタスクを検索します。
与えられたタスク名にマッチするタスクを検索します。
このメソッドは、ファイルタスクやルールを合成せずにタスクを探します。
特別なスコープ ('^' など) が存在します。スコープが省略された場合は
現在のスコープを使用します。
@param task_name タスク名を指定します。
@param initial_scope 検索するスコープを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.applicati... -
Rake
:: FileList # existing -> Rake :: FileList (33391.0) -
自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含む Rake::FileList を返します。
自身に含まれるファイルのうちファイルシステムに存在するファイルのみを
含む Rake::FileList を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.existing # =>... -
Rake
:: FileList # ext(newext = & # 39;& # 39;) -> Rake :: FileList (33391.0) -
各要素に String#ext を適用した新しい Rake::FileList を返します。
各要素に String#ext を適用した新しい Rake::FileList を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.ext(".erb") # => ["test1.e... -
Rake
:: FileList # pathmap(spec = nil) -> Rake :: FileList (33391.0) -
各要素に String#pathmap を適用した新しい Rake::FileList を返します。
各要素に String#pathmap を適用した新しい Rake::FileList を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.pathmap("%n") # => ["test1", "test2", "test3"]
end
//}
@see String#pathmap -
Rake
:: Application # init(app _ name = & # 39;rake& # 39;) (33379.0) -
コマンドラインオプションとアプリケーション名を初期化します。
コマンドラインオプションとアプリケーション名を初期化します。
//emlist[例][ruby]{
# Rakefile での記載例とする
task default: :test
task :test
Rake.application.name # => "rake"
Rake.application.init("MyApp") # => ["default"]
Rake.application.name # => "MyApp"
//} -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (33361.0) -
与えられたタスク名をもとにファイルタスクを合成します。
与えられたタスク名をもとにファイルタスクを合成します。
@param task_name タスク名を指定します。
@return 与えられたタスク名と同名のファイルが存在する場合は、ファイルタスクを作成して返します。
そうでない場合は nil を返します。
@raise RuntimeError タスクを合成できなかった場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.applicatio... -
Rake
:: FileList # gsub(pattern , replace) -> Rake :: FileList (33355.0) -
自身に含まれるファイルリストのそれぞれのエントリに対して String#gsub を実行し、 結果を新しい Rake::FileList として返します。
自身に含まれるファイルリストのそれぞれのエントリに対して String#gsub を実行し、
結果を新しい Rake::FileList として返します。
例:
FileList['lib/test/file', 'x/y'].gsub(/\//, "\\") # => ['lib\\test\\file', 'x\\y'] -
Rake
:: FileList # sub(pattern , replace) -> Rake :: FileList (33355.0) -
自身に含まれるファイルリストのそれぞれのエントリに対して String#sub を実行し、 結果を新しい Rake::FileList として返します。
自身に含まれるファイルリストのそれぞれのエントリに対して String#sub を実行し、
結果を新しい Rake::FileList として返します。
例:
FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o'] -
Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (33355.0) -
与えられた値を追加した Rake::InvocationChain を返します。
与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。 -
Rake
:: Task # application -> Rake :: Application (33355.0) -
自身を所有している Rake::Application のインスタンスを返します。
自身を所有している Rake::Application のインスタンスを返します。 -
Rake
:: FileTask # timestamp -> Time | Rake :: LateTime (33343.0) -
ファイルタスクのタイムスタンプを返します。
ファイルタスクのタイムスタンプを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: "test.txt"
file "test.txt" do |task|
Rake.application.options.build_all = false
task.timestamp # => #<Rake::LateTime:0x2ba58f0>
end
//} -
Rake
:: NameSpace # [](name) -> Rake :: Task (33343.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
:: FileCreationTask # timestamp -> Rake :: EarlyTime (33307.0) -
どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。
どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。
@see [[FileTask#timestamp]] -
Rake
:: TaskManager # enhance _ with _ matching _ rule(task _ name , level = 0) -> Rake :: Task | nil (33307.0) -
与えられたタスク名にマッチしたルールが存在する場合は、そのタスクに見つかったルールの 事前タスクとアクションを追加して返します。
与えられたタスク名にマッチしたルールが存在する場合は、そのタスクに見つかったルールの
事前タスクとアクションを追加して返します。
@param task_name タスクの名前を指定します。
@param level 現在のルール解決のネストの深さを指定します。
@raise RuntimeError ルールの解決時にオーバーフローした場合に発生します。 -
Rake
:: TaskManager # clear (33166.0) -
全てのタスクとルールをクリアします。
全てのタスクとルールをクリアします。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.tasks # => [<Rake::Task default => [test_rake_app]>, <Rake::Task test_rake_app => []>]
Rake.application.clear # => []
Rake.application.tasks # => []
end
//} -
Rake
:: TaskManager # tasks -> Array (33166.0) -
全てのタスクリストを返します。
全てのタスクリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app2
task :test_rake_app1 do |task|
end
task :test_rake_app2 do |task|
pp task.application.tasks
# => [<Rake::Task default => [test_rake_app2]>,
# <Rake::Task test_rake_app1 => []>,
# <Rake... -
Rake
:: Application # add _ loader(ext , loader) (33130.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを
自身に追加します。
@param ext 拡張子を指定します。
@param loader ローダーを指定します。
//emlist[例][ruby]{
require "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)... -
Rake
:: Application # name -> String (33124.0) -
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//} -
Rake
:: Application # original _ dir -> String (33106.0) -
rake コマンドを実行したディレクトリを返します。
rake コマンドを実行したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.original_dir # => "/path/to/dir"
end
//} -
Rake
:: Application # run (33106.0) -
Rake アプリケーションを実行します。
Rake アプリケーションを実行します。
このメソッドは以下の 3 ステップを実行します。
* コマンドラインオプションを初期化します。Rake::Application#init
* タスクを定義します。Rake::Application#load_rakefile
* コマンドラインで指定されたタスクを実行します。Rake::Application#top_level -
Rake
:: Application # tty _ output=(tty _ output _ state) (33094.0) -
TTY に対する出力状態を上書きします。
TTY に対する出力状態を上書きします。
大抵の場合、テストのために使用します。
@param tty_output_state 変更後の状態を指定します
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.tty_output? # => false
Rake.application.tty_output = "debug output" # => "debug output"
... -
Rake
:: Application # top _ level (33088.0) -
Rake アプリケーションに与えられたトップレベルのタスク (コマンドラインで指定されたタスク) を実行します。
Rake アプリケーションに与えられたトップレベルのタスク
(コマンドラインで指定されたタスク) を実行します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test1
task :test1
task :test2 do
puts "test2"
end
# rake test2 で実行
Rake.application.top_level
# => "test2"
//} -
Rake
:: InvocationChain # member?(task _ name) -> bool (33076.0) -
与えられたタスク名が自身に含まれる場合は真を返します。 そうでない場合は偽を返します。
与えられたタスク名が自身に含まれる場合は真を返します。
そうでない場合は偽を返します。
@param task_name タスク名を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.member?("task_a") # => true... -
Rake
:: InvocationChain # to _ s -> String (33076.0) -
トップレベルのタスクから自身までの依存関係を文字列として返します。
トップレベルのタスクから自身までの依存関係を文字列として返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.to_s # => "TOP => task_a"
end
//} -
Rake
:: Application # options -> OpenStruct (33058.0) -
コマンドラインで与えられたアプリケーションのオプションを返します。
コマンドラインで与えられたアプリケーションのオプションを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=... -
Rake
:: Application # top _ level _ tasks -> Array (33058.0) -
コマンドラインで指定されたタスクのリストを返します。
コマンドラインで指定されたタスクのリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.top_level_tasks # => ["default"]
end
//} -
Rake
:: Cloneable # dup -> object (33058.0) -
自身と同じクラスのオブジェクトを作成後、自身のインスタンス変数を 全て新たに作成したオブジェクトにコピーします。
自身と同じクラスのオブジェクトを作成後、自身のインスタンス変数を
全て新たに作成したオブジェクトにコピーします。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.freeze
dup = file_list.dup
clone = file_list.clone
dup.exclude("a.c") # => ["b.c"]
clone.ex... -
Rake
:: TaskArguments # [](key) -> object (33058.0) -
与えられたパラメータ名に対応する値を返します。
与えられたパラメータ名に対応する値を返します。
@param key パラメータの名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments["name1"] # => "value1"
arguments["name2"] # => "value2"
end
/... -
Rake
:: TaskArguments # names -> Array (33058.0) -
パラメータ名のリストを返します。
パラメータ名のリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.names # => ["name1", "name2"]
end
//} -
Rake
:: TaskArguments # to _ hash -> Hash (33058.0) -
パラメータ名と対応する値を格納したハッシュを返します。
パラメータ名と対応する値を格納したハッシュを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
end
//} -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (33058.0) -
パラメータにデフォルト値をセットします。
パラメータにデフォルト値をセットします。
@param defaults デフォルト値として使用するキーと値を格納したハッシュを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.to_hash ... -
Rake
:: TaskManager # create _ rule(*args) { . . . } (33058.0) -
与えられたパラメータに従ってルールを作成します。
与えられたパラメータに従ってルールを作成します。
@param args ルールに与えるパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
rule = Rake.application.create_rule '.txt' => '.md' do |t|
"#{t}"
end
p rule # => 0x0000558dd2e32d20 /path/to/Rakefile:5>
end
//} -
Rake
:: TaskManager # current _ scope -> Array (33058.0) -
現在のスコープを返します。
現在のスコープを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.current_scope # => LL()
end
//} -
Rake
:: TaskManager # last _ comment -> String (33058.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_app2 do |task|
end
//} -
Rake
:: TaskManager # last _ description -> String (33058.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_app2 do |task|
end
//} -
Rake
:: TaskManager # last _ description=(description) (33058.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 :... -
Rake
:: Task # application=(app) (33052.0) -
自身を所有している Rake::Application のインスタンスをセットします。
自身を所有している Rake::Application のインスタンスをセットします。
@param app 自身を所有しているアプリケーションを指定します。 -
Rake
:: Task # source -> String (33052.0) -
Rake::Task#sources の最初の要素を返します。
Rake::Task#sources の最初の要素を返します。 -
Rake
:: Cloneable # clone -> object (33040.0) -
自身を複製します。
自身を複製します。
自身がフリーズされていれば返されるオブジェクトもフリーズされています。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
clone = file_list.clone
clone # => ["a.c", "b.c"]
clone.exclude("a.c")
clone == file_list # => f... -
Rake
:: DefaultLoader # load(filename) (33040.0) -
与えられたファイルをロードします。
与えられたファイルをロードします。
@param filename ロードするファイル名を指定します。
//emlist[][ruby]{
require 'rake'
loader = Rake::DefaultLoader.new
loader.load("path/to/Rakefile") # => true
//} -
Rake
:: FileList # ==(array) -> bool (33040.0) -
自身を配列に変換してから与えられた配列と比較します。
自身を配列に変換してから与えられた配列と比較します。
@param array 比較対象の配列を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')
file_list == file_list.to_a # => true
end
//} -
Rake
:: FileList # clear _ exclude -> self (33040.0) -
登録されている除外リストをクリアします。
登録されている除外リストをクリアします。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test.rb", "test.bak")
file_list.exclude("test.rb")
# DEFAULT_IGNORE_PATTERNS と "test.rb" の双方の除外がクリアされる
file_list.clear_exclude
file_list # => ["test.r... -
Rake
:: FileList # egrep(pattern) {|filename , count , line| . . . } (33040.0) -
与えられたパターンをファイルリストから grep のように検索します。
与えられたパターンをファイルリストから grep のように検索します。
ブロックが与えられた場合は、マッチした行の情報 (ファイル名、行番号、マッチした行) が
ブロックに渡されてブロックが評価されます。ブロックが与えられなかった場合は、
標準出力に、ファイル名:行番号:マッチした行を出力します。
@param pattern 正規表現を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("sample1", "line1\nline2\nline3\n")
IO.write("sample2", "line1\nline2\n... -
Rake
:: FileList # excluded _ from _ list?(file _ name) -> bool (33040.0) -
与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。
与えられたファイル名が除外される場合は、真を返します。
そうでない場合は偽を返します。
@param file_name ファイル名を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb")
file_list.exclude("t... -
Rake
:: FileList # existing! -> self (33040.0) -
自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含むように自身を変更して返します。
自身に含まれるファイルのうちファイルシステムに存在するファイルのみを
含むように自身を変更して返します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.existing! # => ["tes... -
Rake
:: FileList # gsub!(pattern , replace) -> self (33040.0) -
自身に含まれるファイルリストのそれぞれのエントリに対して String#gsub を実行します。 自身を破壊的に変更します。
自身に含まれるファイルリストのそれぞれのエントリに対して String#gsub を実行します。
自身を破壊的に変更します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.gsub!(/\.r... -
Rake
:: FileList # import(array) -> self (33040.0) -
与えられた配列を自身にインポートします。
与えられた配列を自身にインポートします。
@param array ファイル名のリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.import(["test4.rb", "... -
Rake
:: FileList # is _ a?(klass) -> bool (33040.0) -
自身に Array のフリをさせます。
自身に Array のフリをさせます。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.is_a?(Array) # => true
file_list.is_a?(String) # => false
end
//} -
Rake
:: FileList # kind _ of?(klass) -> bool (33040.0) -
自身に Array のフリをさせます。
自身に Array のフリをさせます。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.is_a?(Array) # => true
file_list.is_a?(String) # => false
end
//} -
Rake
:: FileList # resolve -> self (33040.0) -
追加リストと除外リストを評価します。
追加リストと除外リストを評価します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test.rb", "test")
IO.write("test.java", "test")
IO.write("test.js", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("*.rb")
file_list.include("*.java")
file_list.exclude("*.js")
file_... -
Rake
:: FileList # sub!(pattern , replace) -> self (33040.0) -
自身に含まれるファイルリストのそれぞれのエントリに対して String#sub を実行します。 自身を破壊的に変更します。
自身に含まれるファイルリストのそれぞれのエントリに対して String#sub を実行します。
自身を破壊的に変更します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.sub!(/\.c$/, '.o') # => ['a.o', 'b.o']
file_list # => ['a.o', 'b.o']
end
//... -
Rake
:: FileList # to _ a -> Array (33040.0) -
内部的な配列を返します。
内部的な配列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_a # => ["a.c", "b.c"]
end
//} -
Rake
:: FileList # to _ ary -> Array (33040.0) -
内部的な配列を返します。
内部的な配列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_a # => ["a.c", "b.c"]
end
//} -
Rake
:: FileList # to _ s -> String (33040.0) -
全ての要素をスペースで連結した文字列を返します。
全ての要素をスペースで連結した文字列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_s # => "a.c b.c"
end
//} -
Rake
:: NameSpace # tasks -> Array (33040.0) -
タスクのリストを返します。
タスクのリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
namespace :ns do |ns|
task :ts1 do
end
task :ts2 do
end
ns.tasks # => [<Rake::Task ns:ts1 => []>, <Rake::Task ns:ts2 => []>]
end
//} -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (33040.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
:: FileTask # needed? -> bool (33022.0) -
このタスクが必要である場合は真を返します。 そうでない場合は偽を返します。
このタスクが必要である場合は真を返します。
そうでない場合は偽を返します。
このタスクで作成しようとしているファイルが存在しない場合や、
このタスクで作成しようとしているファイルが古い場合に真を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: "test.txt"
file "test.txt" do |task|
Rake.application.options.build_all = false
task.needed? # => true
IO.write("test.txt", "test")
t... -
Rake
:: EarlyTime # <=>(other) -> -1 (33004.0) -
必ず -1 を返します。
必ず -1 を返します。
@param other 比較対象のオブジェクト
@return -1 を返します。 -
Rake
:: EarlyTime # to _ s -> String (33004.0) -
"<EARLY TIME>" という文字列を返します。
"<EARLY TIME>" という文字列を返します。 -
Rake
:: FileCreationTask # needed? -> bool (33004.0) -
ファイルが存在しない場合、真を返します。 そうでない場合は、偽を返します。
ファイルが存在しない場合、真を返します。
そうでない場合は、偽を返します。
@see [[FileTask#needed?]] -
Rake
:: FileList # *(other) -> Array | String (33004.0) -
Array#* と動作を合わせるために再定義しています。
Array#* と動作を合わせるために再定義しています。
@see Array#* -
Rake
:: FileList # exclude(*patterns) {|entry| . . . } -> self (33004.0) -
自身から取り除くべきファイル名のパターンを自身の除外リストに登録します。
自身から取り除くべきファイル名のパターンを自身の除外リストに登録します。
パターンとして正規表現、グロブパターン、文字列が使用可能です。
さらにブロックが与えられた場合は、ブロックを評価して真になったエントリを削除します。
グロブパターンはファイルシステムに対して展開されます。
もし、ファイルシステムに存在しないファイルを明示的にリストへ追加した場合、
グロブパターンではそのファイルをリストから削除しません。
例:
FileList['a.c', 'b.c'].exclude("a.c") # => ['b.c']
FileList['a.c', 'b.c'].exclude(... -
Rake
:: FileList # include(*filenames) -> self (33004.0) -
ファイル名のパターンを追加リストに登録します。 配列が与えられた場合、配列の各要素が追加されます。
ファイル名のパターンを追加リストに登録します。
配列が与えられた場合、配列の各要素が追加されます。
@param filenames 追加するファイル名のパターンを指定します。
例:
file_list.include("*.java", "*.cfg")
file_list.include %w( math.c lib.h *.o ) -
Rake
:: InvocationChain :: EmptyInvocationChain # member?(task _ name) -> bool (33004.0) -
偽を返します。
偽を返します。 -
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (33004.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
Rake
:: Task # actions -> Array (33004.0) -
自身に関連するアクションのリストを返します。
自身に関連するアクションのリストを返します。 -
Rake
:: Task # add _ description(description) (33004.0) -
自身に詳細説明を追加します。
自身に詳細説明を追加します。 -
Rake
:: Task # arg _ description (33004.0) -
-
Rake
:: Task # arg _ names -> Array (33004.0) -
自身のパラメータ名のリストを返します。
自身のパラメータ名のリストを返します。 -
Rake
:: Task # clear -> self (33004.0) -
自身に登録されているアクションと事前タスクをクリアします。
自身に登録されているアクションと事前タスクをクリアします。 -
Rake
:: Task # clear _ actions -> self (33004.0) -
自身に登録されているアクションをクリアします。
自身に登録されているアクションをクリアします。 -
Rake
:: Task # clear _ prerequisites -> self (33004.0) -
自身に登録されている事前タスクをクリアします。
自身に登録されている事前タスクをクリアします。 -
Rake
:: Task # comment -> String (33004.0) -
自身の短いコメントを返します。
自身の短いコメントを返します。 -
Rake
:: Task # comment=(comment) (33004.0) -
自身のコメントをセットします。
自身のコメントをセットします。
与えられた文字列が 50 文字を越える場合や複数行である場合は文字列を切り詰めます。
@param comment コメントをあらわす文字列を指定します。 -
Rake
:: Task # enhance(deps = nil) { . . . } -> self (33004.0) -
自身に事前タスクとアクションを追加します。
自身に事前タスクとアクションを追加します。 -
Rake
:: Task # execute(args = nil) (33004.0) -
自身に関連付けられているアクションを実行します。
自身に関連付けられているアクションを実行します。 -
Rake
:: Task # full _ comment -> String (33004.0) -
自身のコメントを全て返します。
自身のコメントを全て返します。 -
Rake
:: Task # inspect -> String (33004.0) -
自身の情報を人間に読める形式で返します。
自身の情報を人間に読める形式で返します。 -
Rake
:: Task # investigation -> String (33004.0) -
自身の詳しい内部状態を文字列化して返します。
自身の詳しい内部状態を文字列化して返します。
このメソッドはデバッグに便利です。 -
Rake
:: Task # invoke(*args) (33004.0) -
必要であれば自身を実行します。最初に事前タスクを実行します。
必要であれば自身を実行します。最初に事前タスクを実行します。 -
Rake
:: Task # name -> String (33004.0) -
ネームスペースを含むタスクの名前を返します。
ネームスペースを含むタスクの名前を返します。 -
Rake
:: Task # needed? -> true (33004.0) -
このタスクが必要ならば真を返します。
このタスクが必要ならば真を返します。 -
Rake
:: Task # prerequisites -> Array (33004.0) -
事前タスクのリストを返します。
事前タスクのリストを返します。 -
Rake
:: Task # reenable -> false (33004.0) -
自身をもう一度実行出来るようにします。
自身をもう一度実行出来るようにします。 -
Rake
:: Task # scope (33004.0) -
-
Rake
:: Task # set _ arg _ names(args) (33004.0) -
自身のパラメータの名前のリストをセットします。
自身のパラメータの名前のリストをセットします。
@param args シンボルのリストを指定します。 -
Rake
:: Task # sources -> Array (33004.0) -
自身が依存するファイルのリストを返します。
自身が依存するファイルのリストを返します。 -
Rake
:: Task # sources=(sources) (33004.0) -
自身が依存するファイルのリストをセットします。
自身が依存するファイルのリストをセットします。
@param sources 自身が依存するファイルのリストを指定します。 -
Rake
:: Task # timestamp -> Time (33004.0) -
自身のタイムスタンプを返します。
自身のタイムスタンプを返します。
基本的なタスクは現在時刻を返しますが、高度なタスクはタイムスタンプを
計算して返します。 -
Rake
:: Task # to _ s -> String (33004.0) -
自身の名前を返します。
自身の名前を返します。 -
Rake
:: TaskArguments # each {|key , val| . . . } -> Hash (33004.0) -
自身に含まれるパラメータ名とそれに対応する値をブロックパラメータとしてブロックを評価します。
自身に含まれるパラメータ名とそれに対応する値をブロックパラメータとしてブロックを評価します。
@see Hash#each -
Rake
:: TaskArguments # inspect -> String (33004.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。
@see Hash#inspect