クラス
-
Rake
:: Application (11) -
Rake
:: FileCreationTask (1) -
Rake
:: FileList (8) -
Rake
:: FileTask (1) -
Rake
:: GemPackageTask (1) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) -
Rake
:: MakefileLoader (1) -
Rake
:: PackageTask (15) -
Rake
:: RDocTask (3) -
Rake
:: Task (4) -
Rake
:: TaskArguments (1) - String (4)
モジュール
- FileUtils (1)
- Kernel (3)
-
Rake
:: Cloneable (1) -
Rake
:: TaskManager (6)
キーワード
- [] (1)
-
add
_ loader (1) - application (1)
- application= (1)
-
clear
_ prerequisites (1) -
create
_ rule (1) - define (1)
- desc (1)
- dup (1)
- egrep (1)
- enhance (1)
- exclude (1)
-
gem
_ file (1) - gsub (1)
- gsub! (1)
- import (2)
- init (1)
-
last
_ comment (1) -
last
_ description (1) -
last
_ description= (1) - load (1)
-
load
_ rakefile (1) - lookup (2)
- member? (1)
- name (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) -
option
_ list (1) -
original
_ dir (1) -
package
_ files (1) -
package
_ files= (1) - pathmap (2)
-
pathmap
_ explode (1) -
pathmap
_ partial (1) -
pathmap
_ replace (1) - rakefile (1)
- run (1)
-
split
_ all (1) - sub (1)
- sub! (1)
-
tar
_ bz2 _ file (1) -
tar
_ gz _ file (1) - template (1)
- template= (1)
-
tgz
_ file (1) -
top
_ level (1) -
top
_ level _ tasks (1) -
tty
_ output= (1) -
zip
_ file (1)
検索結果
先頭5件
-
String
# pathmap _ partial(n) -> String (54910.0) -
自身から与えられた階層分パスを抜粋します。
自身から与えられた階層分パスを抜粋します。
与えられた数値が正である場合は左から、負である場合は右から抜粋します。 -
Rake
:: PackageTask # package _ files -> Rake :: FileList (45907.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 # =>... -
Rake
:: PackageTask # package _ files=(file _ list) (45907.0) -
パッケージに含むファイルリストを設定します。
...。
@param file_list ファイルリストを指定します。
//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 # =>... -
Rake
:: Task # application -> Rake :: Application (37210.0) -
自身を所有している Rake::Application のインスタンスを返します。
...自身を所有している Rake::Application のインスタンスを返します。... -
Rake
:: RDocTask # template=(template) (37207.0) -
使用するテンプレートをセットします。
使用するテンプレートをセットします。
@param template 使用するテンプレートを指定します。 -
Rake
:: Task # application=(app) (36910.0) -
自身を所有している Rake::Application のインスタンスをセットします。
...自身を所有している Rake::Application のインスタンスをセットします。
@param app 自身を所有しているアプリケーションを指定します。... -
Rake
:: TaskManager # last _ description=(description) (36910.0) -
最新の詳細説明をセットします。
...by]{
# 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... -
String
# pathmap _ replace(patterns) { . . . } -> String (36910.0) -
与えられたパスを前もって置き換えます。
与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。 -
FileUtils
# split _ all(path) -> Array (36610.0) -
与えられたパスをディレクトリごとに分割します。
与えられたパスをディレクトリごとに分割します。
@param path 分割するパスを指定します。
例:
split_all("a/b/c") # => ['a', 'b', 'c'] -
Rake
:: Application # top _ level (36610.0) -
Rake アプリケーションに与えられたトップレベルのタスク (コマンドラインで指定されたタスク) を実行します。
...
Rake アプリケーションに与えられたトップレベルのタスク
(コマンドラインで指定されたタスク) を実行します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test1
task :test1
task :test2 do
puts "test2"
end
# rake test2 で実行
R... -
Rake
:: Application # top _ level _ tasks -> Array (36610.0) -
コマンドラインで指定されたタスクのリストを返します。
...コマンドラインで指定されたタスクのリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.top_level_tasks # => ["default"]
end
//}... -
Rake
:: Task # clear _ prerequisites -> self (36610.0) -
自身に登録されている事前タスクをクリアします。
自身に登録されている事前タスクをクリアします。 -
Rake
:: TaskArguments # lookup(name) -> object (36610.0) -
与えられた名前に対応する値を返します。
与えられた名前に対応する値を返します。
@param name パラメータ名を指定します。 -
Rake
:: TaskManager # lookup(task _ name , initial _ scope = nil) -> Rake :: Task | nil (36610.0) -
与えられたタスク名にマッチするタスクを検索します。
...名を指定します。
@param initial_scope 検索するスコープを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.lookup("test_rake_app") # => <Rake::Task test_rake_app => []>
end
//}... -
String
# pathmap _ explode -> Array (36610.0) -
自身をパスを表す部分ごとに分解して配列にして返します。 String#pathmap で利用される protected メソッドです。
自身をパスを表す部分ごとに分解して配列にして返します。
String#pathmap で利用される protected メソッドです。
@see String#pathmap -
Rake
:: PackageTask # zip _ file -> String (36607.0) -
zip ファイル用のファイル名を返します。
zip ファイル用のファイル名を返します。 -
Rake
:: RDocTask # option _ list -> Array (36607.0) -
rdoc コマンドに渡すオプションのリストを返します。
rdoc コマンドに渡すオプションのリストを返します。 -
Rake
:: RDocTask # template -> String (36607.0) -
使用するテンプレートを返します。 デフォルトは RDoc のデフォルトです。
使用するテンプレートを返します。
デフォルトは RDoc のデフォルトです。 -
Kernel
# namespace(name = nil) { . . . } -> Rake :: NameSpace (27910.0) -
新しい名前空間を作成します。
...新しい名前空間を作成します。
与えられたブロックを評価する間は、その名前空間を使用します。
例:
ns = namespace "nested" do
task :run
end
task_run = ns[:run] # find :run in the given namespace.
@see Rake::TaskManager#in_namespace... -
Rake
:: TaskManager # last _ description -> String (27628.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... -
Kernel
# import(*filenames) (27610.0) -
分割された Rakefile をインポートします。
...分割された Rakefile をインポートします。
インポートされたファイルは、現在のファイルが完全にロードされた後でロードされます。
このメソッドはインポートするファイルのどこで呼び出されてもかまいません。
また、......されているオブジェクトに依存していてもかまいません。
このメソッドは依存関係を定義したファイルを読み込むのによく使われます。
@param filenames インポートする Rakefile を指定します。
例:
import ".depend", "my_rules"... -
Rake
:: Application # add _ loader(ext , loader) (27610.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
...e "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.add_loader("mf", Rake::MakefileLoader.new)
Rake.application.add_import("sample.mf")
Rake::......Task.task_defined?("a") # => false
Rake.application.load_imports
Rake::Task.task_defined?("a") # => true
//}... -
Rake
:: Application # tty _ output=(tty _ output _ state) (27610.0) -
TTY に対する出力状態を上書きします。
...を指定します
//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.tty_output? #... -
Rake
:: FileCreationTask # timestamp -> Rake :: EarlyTime (27610.0) -
どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。
どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。
@see [[FileTask#timestamp]] -
Rake
:: FileList # egrep(pattern) {|filename , count , line| . . . } (27610.0) -
与えられたパターンをファイルリストから grep のように検索します。
...attern 正規表現を指定します。
//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 = FileList.new('sample*')
file_list.eg... -
Rake
:: FileList # import(array) -> self (27610.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_li... -
Rake
:: FileList # pathmap(spec = nil) -> Rake :: FileList (27610.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",... -
Rake
:: FileTask # timestamp -> Time | Rake :: LateTime (27610.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
:: Application # load _ rakefile (27310.0) -
Rakefile を探してロードします。
...
Rakefile を探してロードします。... -
Rake
:: Application # options -> OpenStruct (27310.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=false, load_system=false, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=8, trace=false, trace_output=#... -
Rake
:: Application # original _ dir -> String (27310.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 # rakefile -> String (27310.0) -
実際に使用されている Rakefile の名前を返します。
...実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}... -
Rake
:: Cloneable # dup -> object (27310.0) -
自身と同じクラスのオブジェクトを作成後、自身のインスタンス変数を 全て新たに作成したオブジェクトにコピーします。
...][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.exclude("a.c") # => can't modify frozen Rake::FileList... -
Rake
:: GemPackageTask # gem _ file -> String (27307.0) -
Gem パッケージの名前を返します。
Gem パッケージの名前を返します。 -
Rake
:: PackageTask # tar _ bz2 _ file -> String (27307.0) -
tar.bz2 用のファイル名を返します。
tar.bz2 用のファイル名を返します。 -
Rake
:: PackageTask # tar _ gz _ file -> String (27307.0) -
tar.gz 用のファイル名を返します。
tar.gz 用のファイル名を返します。 -
Rake
:: PackageTask # tgz _ file -> String (27307.0) -
tgz 用のファイル名を返します。
tgz 用のファイル名を返します。 -
String
# pathmap(spec = nil) { . . . } -> String (18646.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
与えられた書式指定文字列に応じてパス(自身)を変換します。
与えられた書式指定文字列は変換の詳細を制御します。
指定できる書式指定文字列は以下の通りです。
: %p
完全なパスを表します。
: %f
拡張子付きのファイル名を表します。ディレクトリ名は含まれません。
: %n
拡張子なしのファイル名を表します。
: %d
パスに含まれるディレクトリのリストを表します。
: %x
パスに含まれるファイルの拡張子を表します。拡張子が無い場合は空文字列を表します。
: %X
拡張子以外すべてを表します。
: %s
定義されていれば、代替のファイルセパレータを表します。... -
Rake
:: FileList # exclude(*patterns) {|entry| . . . } -> self (18610.0) -
自身から取り除くべきファイル名のパターンを自身の除外リストに登録します。
自身から取り除くべきファイル名のパターンを自身の除外リストに登録します。
パターンとして正規表現、グロブパターン、文字列が使用可能です。
さらにブロックが与えられた場合は、ブロックを評価して真になったエントリを削除します。
グロブパターンはファイルシステムに対して展開されます。
もし、ファイルシステムに存在しないファイルを明示的にリストへ追加した場合、
グロブパターンではそのファイルをリストから削除しません。
例:
FileList['a.c', 'b.c'].exclude("a.c") # => ['b.c']
FileList['a.c', 'b.c'].exclude(... -
Rake
:: PackageTask # need _ zip -> bool (18607.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 # need _ zip=(flag) (18607.0) -
zip ファイル (tgz) を作成するかどうかを設定します。
...作成するかどうかを設定します。
@param flag 真または偽を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_zip # => false
package_task.need_zip = t... -
Rake
:: MakefileLoader # load(filename) (18343.0) -
与えられた Makefile をロードします。
...します。
@param filename 読み込む Makefile の名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require "rake/loaders/makefile"
task default: :test_rake_app
open "sample.mf", "w" do |io|
io << <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
b: b1 b2 b3 \
b4......a6 a7
c: c1
d: d1 d2 \
e f : e1 f1
g\ 0: g1 g\ 2 g\ 3 g4
SAMPLE_MF
end
task :test_rake_app do |task|
loader = Rake::MakefileLoader.new
loader.load("sample.mf")
p Rake::Task.task_defined?("a") # => true
p Rake::Task.tasks[0] # => <Rake::FileTask a => [a1, a2, a3, a4, a5, a6, a7]>
end
//}... -
Rake
:: TaskManager # create _ rule(*args) { . . . } (18328.0) -
与えられたパラメータに従ってルールを作成します。
...に与えるパラメータを指定します。
//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 # last _ comment -> String (18328.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... -
Rake
:: Application # init(app _ name = & # 39;rake& # 39;) (18310.0) -
コマンドラインオプションとアプリケーション名を初期化します。
...ンドラインオプションとアプリケーション名を初期化します。
//emlist[例][ruby]{
# Rakefile での記載例とする
task default: :test
task :test
Rake.application.name # => "rake"
Rake.application.init("MyApp") # => ["default"]
Rake.application.name # => "MyApp"
//}... -
Rake
:: Application # name -> String (18010.0) -
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
...アプリケーションの名前を返します。通常は 'rake' という名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//}... -
Rake
:: Application # run (18010.0) -
Rake アプリケーションを実行します。
...
Rake アプリケーションを実行します。
このメソッドは以下の 3 ステップを実行します。
* コマンドラインオプションを初期化します。Rake::Application#init
* タスクを定義します。Rake::Application#load_rakefile
* コマンドラインで......指定されたタスクを実行します。Rake::Application#top_level... -
Rake
:: FileList # gsub!(pattern , replace) -> self (9610.0) -
自身に含まれるファイルリストのそれぞれのエントリに対して 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... -
Rake
:: FileList # gsub(pattern , replace) -> Rake :: FileList (9610.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) -> self (9610.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... -
Rake
:: FileList # sub(pattern , replace) -> Rake :: FileList (9610.0) -
自身に含まれるファイルリストのそれぞれのエントリに対して String#sub を実行し、 結果を新しい Rake::FileList として返します。
...自身に含まれるファイルリストのそれぞれのエントリに対して String#sub を実行し、
結果を新しい Rake::FileList として返します。
例:
FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o']... -
Kernel
# desc(description) -> String (9310.0) -
直後の Rake タスクの説明を登録します。
...直後の Rake タスクの説明を登録します。
@param description 直後のタスクの説明を指定します。
例:
desc "Run the Unit Tests"
task :test => [:build] do
runtests
end... -
Rake
:: InvocationChain :: EmptyInvocationChain # member?(task _ name) -> bool (9310.0) -
偽を返します。
偽を返します。 -
Rake
:: PackageTask # define -> self (9307.0) -
タスクを定義します。
タスクを定義します。
@raise RuntimeError バージョン情報をセットしていない場合に発生します。
初期化時に :noversion が指定されている場合は発生しません。 -
Rake
:: PackageTask # need _ tar -> bool (9307.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=(flag) (9307.0) -
gzip した tar ファイル (tgz) を作成するかどうかを設定します。
...作成するかどうかを設定します。
@param flag 真または偽を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_tar # => false
package_task.need_tar = t... -
Rake
:: PackageTask # need _ tar _ bz2 -> bool (9307.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 _ bz2=(flag) (9307.0) -
bzip2 した tar ファイル (tar.bz2) を作成するかどうかを設定します。
...作成するかどうかを設定します。
@param flag 真または偽を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_tar_bz2 # => false
package_task.need_tar... -
Rake
:: PackageTask # need _ tar _ gz -> bool (9307.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 _ tar _ gz=(flag) (9307.0) -
gzip した tar ファイル (tar.gz) を作成するかどうかを設定します。
...作成するかどうかを設定します。
@param flag 真または偽を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.need_tar_gz # => false
package_task.need_tar_... -
Rake
:: Task # enhance(deps = nil) { . . . } -> self (610.0) -
自身に事前タスクとアクションを追加します。
自身に事前タスクとアクションを追加します。 -
Rake
:: TaskManager # [](task _ name , scopes = nil) -> Rake :: Task (610.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
//}...