るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
67件ヒット [1-67件を表示] (0.026秒)
トップページ > クエリ:IO[x] > バージョン:2.6.0[x] > ライブラリ:rake[x]

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io each_line
  5. io readlines

検索結果

Rake::Application#options -> OpenStruct (27325.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::InvocationChain::EmptyInvocationChain (27007.0)

呼び出し関係のトップレベルを表します。

呼び出し関係のトップレベルを表します。

Rake.application -> Rake::Application (18625.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>,
#...
...st_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x31b0c18>,
# ".rf"=>#<Rake::DefaultLoader:0x31b0b88>,
# ".rake"=>#<Rake::DefaultLoader:0x31b0b10>},
# @name="rake",
# @options=#<OpenStruct rakelib=["rakelib"], trace_output=#<IO:<STDERR>>>,
# @original...
...nding_imports=[],
# @rakefile="rakefile",
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks=
# {"default"=><Rake::Task default => [test_rake_app]>,
# "test_rake_app"=><Rake::Task test_rake_app => []>},
# @term...

Rake::Task#add_description(description) (18607.0)

自身に詳細説明を追加します。

自身に詳細説明を追加します。

Rake::Task#application -> Rake::Application (18607.0)

自身を所有している Rake::Application のインスタンスを返します。

...自身を所有している Rake::Application のインスタンスを返します。...

絞り込み条件を変える

Rake::TaskManager#last_description=(description) (18607.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...

Rake::RDocTask#options=(options) (18604.0)

rdoc コマンドに渡すオプションのリストをセットします。

rdoc コマンドに渡すオプションのリストをセットします。

@param options rdoc コマンドに渡されるオプションを指定します。

Rake::TestTask#options=(option_str) (18604.0)

テストスイートに渡すパラメータをセットします。

テストスイートに渡すパラメータをセットします。

@param option_str テストスイートに渡すパラメータを指定します。

Rake.application=(app) (18325.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::Application:0x00005624e6c30eb8
# @default_loader=#<Rake::DefaultLoader:0x00005624e6c30cd8>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x00005624e6c30bc0>,
#...
...".rf"=>#<Rake::DefaultLoader:0x00005624e6c30b48>,
# ".rake"=>#<Rake::DefaultLoader:0x00005624e6c30a80>},
# @name="rake",
# @options=
# #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=...

Module#rake_extension(method) { ... } -> () (18307.0)

与えられたブロック内で既に存在するメソッドを再定義しようとした場合に 警告を表示します。この場合、ブロックは評価されません。

...た場合に
警告を表示します。この場合、ブロックは評価されません。

@param method ブロック内で再定義する予定のメソッド名を指定します。

例:
class String
rake
_extension("xyz") do
def xyz
...
end
end
end...

絞り込み条件を変える

Rake::InvocationChain::EmptyInvocationChain#append(task_name) -> Rake::InvocationChain (18307.0)

与えられた値を追加した Rake::InvocationChain を返します。

...与えられた値を追加した Rake::InvocationChain を返します。

@param task_name 追加する値を指定します。...

Rake::Task#actions -> Array (18307.0)

自身に関連するアクションのリストを返します。

自身に関連するアクションのリストを返します。

Rake::Task#application=(app) (18307.0)

自身を所有している Rake::Application のインスタンスをセットします。

...自身を所有している Rake::Application のインスタンスをセットします。

@param app 自身を所有しているアプリケーションを指定します。...

Rake::Task#arg_description (18307.0)

Rake::Task#clear_actions -> self (18307.0)

自身に登録されているアクションをクリアします。

自身に登録されているアクションをクリアします。

絞り込み条件を変える

Rake::Task#investigation -> String (18307.0)

自身の詳しい内部状態を文字列化して返します。

自身の詳しい内部状態を文字列化して返します。

このメソッドはデバッグに便利です。

Rake::PackageTask#version -> String (18304.0)

作成するパッケージのバージョンを表す文字列を返します。

作成するパッケージのバージョンを表す文字列を返します。

Rake::PackageTask#version=(str) (18304.0)

作成するパッケージのバージョンをセットします。

作成するパッケージのバージョンをセットします。

@param str バージョンを表す文字列を指定します。

Rake::RDocTask#option_list -> Array (18304.0)

rdoc コマンドに渡すオプションのリストを返します。

rdoc コマンドに渡すオプションのリストを返します。

Rake::RDocTask#option_string -> String (18304.0)

rdoc コマンドに渡すオプションを文字列として返します。

rdoc コマンドに渡すオプションを文字列として返します。

絞り込み条件を変える

Rake::RDocTask#options -> Array (18304.0)

rdoc コマンドに渡すオプションのリストを返します。

rdoc コマンドに渡すオプションのリストを返します。

指定できるオプションは -o, --main, --title, -T 以外です。

Rake::TestTask#options -> String (18304.0)

テストスイートに渡すパラメータを返します。

テストスイートに渡すパラメータを返します。

コマンドラインで "TESTOPTS=options" が指定されると、この値を上書きします。
デフォルトは何も指定されていません。

Rake::Application (18007.0)

Rake で使用するメインのクラスです。

...Rake で使用するメインのクラスです。

コマンドラインで rake コマンドを実行した時に作成され、実行されます。...

Rake::FileCreationTask (18007.0)

このタスクはファイルが存在しない場合にファイルを作成するタスクです。

このタスクはファイルが存在しない場合にファイルを作成するタスクです。

対象のファイルが存在する場合は実行されません。

Rake::InvocationChain (18007.0)

循環したタスクの呼び出しを検出するためのクラスです。

...循環したタスクの呼び出しを検出するためのクラスです。

例:
a = Rake::InvocationChain::EMPTY
b = a.append('task_a').append('task_b')
p b.to_s # => "TOP => task_a => task_b"

a.append('task_a').append('task_b').append('task_a') # => 例外発生...

絞り込み条件を変える

Rake::InvocationChain::EmptyInvocationChain#member?(task_name) -> bool (18007.0)

偽を返します。

偽を返します。

Rake::InvocationChain::EmptyInvocationChain#to_s -> String (18007.0)

'TOP' という文字列を返します。

'TOP' という文字列を返します。

Rake::RuleRecursionOverflowError (18007.0)

ルールのネストが多すぎる場合に発生する例外です。

ルールのネストが多すぎる場合に発生する例外です。

Rake::InvocationChain::EMPTY -> Rake::InvocationChain::EmptyInvocationChain (9607.0)

Rake::InvocationChain::EmptyInvocationChain のインスタンスを表します。

...
Rake
::InvocationChain::EmptyInvocationChain のインスタンスを表します。...

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (9307.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.append(task_name, chain) -> Rake::InvocationChain (9307.0)

与えられたタスク名を第二引数の Rake::InvocationChain に追加します。

... Rake::InvocationChain に追加します。

@param task_name タスク名を指定します。

@param chain 既に存在する Rake::InvocationChain のインスタンスを指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_a...
...pp do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}...

Rake::TaskManager#last_description -> String (9307.0)

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

...
Rake
file 内の最新の詳細説明を追跡するためのメソッドです。

//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#add_loader(ext, loader) (9025.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#init(app_name = &#39;rake&#39;) (9007.0)

コマンドラインオプションとアプリケーション名を初期化します。

...ンドラインオプションとアプリケーション名を初期化します。

//emlist[例][ruby]{
# Rakefile での記載例とする

task default: :test
task :test

Rake
.application.name # => "rake"
Rake
.application.init("MyApp") # => ["default"]
Rake
.application.name # => "MyApp"
//}...

Rake::Application#load_rakefile (9007.0)

Rakefile を探してロードします。

...
Rake
file を探してロードします。...

絞り込み条件を変える

Rake::Application#name -> String (9007.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 (9007.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 (9007.0)

実際に使用されている Rakefile の名前を返します。

...実際に使用されている Rakefile の名前を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
Rake
.application.rakefile # => "Rakefile"
end
//}...

Rake::Application#run (9007.0)

Rake アプリケーションを実行します。

...
Rake
アプリケーションを実行します。

このメソッドは以下の 3 ステップを実行します。

* コマンドラインオプションを初期化します。Rake::Application#init
* タスクを定義します。Rake::Application#load_rakefile
* コマンドラインで...
...指定されたタスクを実行します。Rake::Application#top_level...

Rake::Application#top_level (9007.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 (9007.0)

コマンドラインで指定されたタスクのリストを返します。

...コマンドラインで指定されたタスクのリストを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
Rake
.application.top_level_tasks # => ["default"]
end
//}...

Rake::Application#tty_output=(tty_output_state) (9007.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::Application::DEFAULT_RAKEFILES -> Array (9007.0)

デフォルトで Rakefile として扱うファイル名の配列を返します。

...デフォルトで Rakefile として扱うファイル名の配列を返します。

'rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb' が指定されています。...

Rake::FileCreationTask#needed? -> bool (9007.0)

ファイルが存在しない場合、真を返します。 そうでない場合は、偽を返します。

ファイルが存在しない場合、真を返します。
そうでない場合は、偽を返します。


@see [[FileTask#needed?]]

Rake::FileCreationTask#timestamp -> Rake::EarlyTime (9007.0)

どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。

どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。


@see [[FileTask#timestamp]]

絞り込み条件を変える

Rake::InvocationChain#member?(task_name) -> bool (9007.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 (9007.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::InvocationChain.new(task_name, tail) (9007.0)

与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。

...前の Rake::InvocationChain を用いて自身を初期化します。

@param task_name タスク名を指定します。

@param tail 一つ前の Rake::InvocationChain を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app d...
...o
tail = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
tail.to_s # => "TOP => task_a"
b = Rake::InvocationChain.new("task_b", tail)
b.to_s # => "TOP => task_a => task_b"
end
//}...

Kernel#desc(description) -> String (307.0)

直後の Rake タスクの説明を登録します。

...直後の Rake タスクの説明を登録します。

@param description 直後のタスクの説明を指定します。

例:
desc "Run the Unit Tests"
task :test => [:build] do
runtests
end...

Kernel#file_create(*args) { ... } -> Rake::FileCreationTask (307.0)

ファイルを作成するタスクを定義します。

ファイルを作成するタスクを定義します。

主に Kernel.#directory を定義するために使用します。

絞り込み条件を変える

Rake::GemPackageTask#gem_spec -> Gem::Specification (304.0)

package ターゲットで使用する gemspec を返します。

package ターゲットで使用する gemspec を返します。

gemspec にはパッケージ名、バージョン、パッケージに含まれるファイルなどが定義
されているので、それらを明示的に指定する必要はありません。

Rake::PackageTask#init(name, version) (304.0)

自身の各属性にデフォルト値をセットします。

自身の各属性にデフォルト値をセットします。

@param name パッケージの名前を指定します。

@param version パッケージのバージョンを指定します。

Rake::PackageTask.new(name = nil, version = nil) {|t| ... } -> Rake::PackageTask (304.0)

自身を初期化してタスクを定義します。

...emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'

Rake
::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_dir = "./pkg"
package_task.package_files.include("lib/**/*")
end

# rake -T を実行すると以下になる
# => rake clobber_package...
...# Remove package products
# rake package # Build all the packages
# rake repackage # Force a rebuild of the package files
//}...

Rake::TestTask#ruby_opts=(options) (304.0)

テスト実行時に Ruby コマンドに渡されるオプションをセットします。

テスト実行時に Ruby コマンドに渡されるオプションをセットします。

@param options 配列でオプションを指定します。

Rake::FileList#resolve -> self (61.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("*....

絞り込み条件を変える

Rake::FileList#egrep(pattern) {|filename, count, line| ... } (43.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#excluded_from_list?(file_name) -> bool (43.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("te...

Rake::FileList#existing -> Rake::FileList (43.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....

Rake::FileList#existing! -> self (43.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...

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (43.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"...

絞り込み条件を変える

Rake::FileList#gsub!(pattern, replace) -> self (43.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#import(array) -> self (43.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::MakefileLoader#load(filename) (40.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::PackageTask#package_files -> Rake::FileList (40.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) (40.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::FileTask#needed? -> bool (25.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")
task.nee...

Rake::TaskManager#synthesize_file_task(task_name) -> Rake::FileTask | nil (25.0)

与えられたタスク名をもとにファイルタスクを合成します。

...//emlist[][ruby]{
# 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 =...