種類
- インスタンスメソッド (39)
- 特異メソッド (7)
- 定数 (1)
ライブラリ
- rake (41)
-
rake
/ packagetask (6)
クラス
-
Rake
:: Application (6) -
Rake
:: FileList (16) -
Rake
:: FileTask (2) -
Rake
:: InvocationChain (1) -
Rake
:: PackageTask (6) -
Rake
:: TaskArguments (2)
モジュール
- Rake (3)
-
Rake
:: Cloneable (2) -
Rake
:: TaskManager (7) - RakeFileUtils (2)
キーワード
- == (1)
-
DEFAULT
_ RAKEFILES (1) - [] (1)
- application (1)
- application= (1)
-
clear
_ exclude (1) - clone (1)
-
define
_ task (1) - dup (1)
-
excluded
_ from _ list? (1) - existing (1)
- existing! (1)
- ext (1)
- gsub! (1)
- import (1)
- intern (1)
-
is
_ a? (1) -
kind
_ of? (1) -
last
_ comment (1) -
last
_ description (1) - lookup (1)
- member? (1)
- name (1)
-
need
_ tar (1) -
need
_ tar _ bz2 (1) -
need
_ tar _ gz (1) -
need
_ zip (1) - needed? (1)
- new (2)
-
nowrite
_ flag (1) -
original
_ dir (2) -
package
_ files (1) - pathmap (1)
- resolve (1)
- sub! (1)
-
synthesize
_ file _ task (1) -
to
_ a (1) -
to
_ ary (1) -
to
_ s (1) -
top
_ level _ tasks (1) -
verbose
_ flag (1) -
with
_ defaults (1)
検索結果
先頭5件
-
Rake
:: Application # rakefile -> String (73006.0) -
実際に使用されている Rakefile の名前を返します。
実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//} -
Rake
:: Application :: DEFAULT _ RAKEFILES -> Array (37021.0) -
デフォルトで Rakefile として扱うファイル名の配列を返します。
デフォルトで Rakefile として扱うファイル名の配列を返します。
'rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb' が指定されています。 -
Rake
:: Cloneable # clone -> object (27619.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
:: FileList # clear _ exclude -> self (27619.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... -
RakeFileUtils
. nowrite _ flag -> bool (27619.0) -
この値が真の場合、実際のファイル書き込みをともなう操作は行いません。 そうでない場合、ファイル書き込みを行います。
この値が真の場合、実際のファイル書き込みをともなう操作は行いません。
そうでない場合、ファイル書き込みを行います。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :sample_file_task
file :sample_file_task do |t|
RakeFileUtils.nowrite_flag # => false
end
//} -
RakeFileUtils
. verbose _ flag -> bool (27619.0) -
この値が真の場合、詳細を表示します。
この値が真の場合、詳細を表示します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :sample_file_task
file :sample_file_task do |t|
# --verbose で rake を実行する
RakeFileUtils.verbose_flag # => true
end
//} -
Rake
. application -> Rake :: Application (19045.0) -
現在の Rake アプリケーションを返します。
現在の Rake アプリケーションを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app
task :test_rake_app do
pp Rake.application
end
# => #<Rake::Application:0x31b0f18
# @default_loader=#<Rake::DefaultLoader:0x31b0c78>,
# @imported=[],
# @last_description=nil,
# ... -
Rake
:: PackageTask # package _ files -> Rake :: FileList (18919.0) -
パッケージに含むファイルリストを返します。
パッケージに含むファイルリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_files # => []
package_task.package_files.include("*.rb")
package_... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (18919.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 # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (18919.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
:: TaskManager # last _ comment -> String (18667.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 (18667.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
. original _ dir -> String (18619.0) -
Rake アプリケーションを開始したディレクトリを返します。
Rake アプリケーションを開始したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.original_dir # => "/path/to/dir"
end
//} -
Rake
:: Application # original _ dir -> String (18619.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 # top _ level _ tasks -> Array (18619.0) -
コマンドラインで指定されたタスクのリストを返します。
コマンドラインで指定されたタスクのリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.top_level_tasks # => ["default"]
end
//} -
Rake
:: FileList # excluded _ from _ list?(file _ name) -> bool (18619.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 # resolve -> self (18619.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
:: TaskManager # lookup(task _ name , initial _ scope = nil) -> Rake :: Task | nil (18619.0) -
与えられたタスク名にマッチするタスクを検索します。
与えられたタスク名にマッチするタスクを検索します。
このメソッドは、ファイルタスクやルールを合成せずにタスクを探します。
特別なスコープ ('^' など) が存在します。スコープが省略された場合は
現在のスコープを使用します。
@param task_name タスク名を指定します。
@param initial_scope 検索するスコープを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.applicati... -
Rake
. application=(app) (18427.0) -
現在の Rake アプリケーションをセットします。
現在の Rake アプリケーションをセットします。
@param app Rake::Application のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app
task :test_rake_app do
app = Rake::Application.new
app.tty_output = true
Rake.application = app
pp Rake.application
end
# => #<Rake::App... -
Rake
:: FileTask # timestamp -> Time | Rake :: LateTime (9637.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
:: FileList # ==(array) -> bool (9619.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 # existing -> Rake :: FileList (9619.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 # existing! -> self (9619.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 # ext(newext = & # 39;& # 39;) -> Rake :: FileList (9619.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 # gsub!(pattern , replace) -> self (9619.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 (9619.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 (9619.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 (9619.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 # pathmap(spec = nil) -> Rake :: FileList (9619.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
:: FileList # sub!(pattern , replace) -> self (9619.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
:: FileTask # needed? -> bool (9619.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
:: Application # options -> OpenStruct (9337.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 # name -> String (9319.0) -
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//} -
Rake
:: Cloneable # dup -> object (9319.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
:: FileList # to _ a -> Array (9319.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 (9319.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 (9319.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
:: InvocationChain # member?(task _ name) -> bool (619.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
:: PackageTask # need _ tar -> bool (619.0) -
この値が真である場合は gzip した tar ファイル (tgz) を作成します。 デフォルトは偽です。
この値が真である場合は gzip した tar ファイル (tgz) を作成します。
デフォルトは偽です。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_tar # => false
end
//} -
Rake
:: PackageTask # need _ tar _ bz2 -> bool (619.0) -
この値が真である場合は bzip2 した tar ファイル (tar.bz2) を作成します。 デフォルトは偽です。
この値が真である場合は bzip2 した tar ファイル (tar.bz2) を作成します。
デフォルトは偽です。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_tar_bz2 # => false
end
//} -
Rake
:: PackageTask # need _ tar _ gz -> bool (619.0) -
この値が真である場合は gzip した tar ファイル (tar.gz) を作成します。 デフォルトは偽です。
この値が真である場合は gzip した tar ファイル (tar.gz) を作成します。
デフォルトは偽です。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_tar_gz # => false
end
//} -
Rake
:: PackageTask # need _ zip -> bool (619.0) -
この値が真である場合は zip ファイルを作成します。 デフォルトは偽です。
この値が真である場合は zip ファイルを作成します。
デフォルトは偽です。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_zip # => false
end
//} -
Rake
:: PackageTask . new(name = nil , version = nil) {|t| . . . } -> Rake :: PackageTask (619.0) -
自身を初期化してタスクを定義します。
自身を初期化してタスクを定義します。
ブロックが与えられた場合は、自身をブロックパラメータとして
ブロックを評価します。
@param name パッケージ名を指定します。
@param version パッケージのバージョンを指定します。
':noversion' というシンボルを指定するとバージョン情報をセットしません。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |packa... -
Rake
:: TaskManager # [](task _ name , scopes = nil) -> Rake :: Task (619.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 (619.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 # intern(task _ class , task _ name) -> Rake :: Task (619.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
:: TaskArguments . new(names , values , parent = nil) (355.0) -
自身を初期化します。
自身を初期化します。
@param names パラメータの名前のリストを指定します。
@param values パラメータの値のリストを指定します。
@param parent 親となる Rake::TaskArguments を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments1 = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])...