別のキーワード
種類
- インスタンスメソッド (17)
- 特異メソッド (2)
- 定数 (1)
- クラス (1)
クラス
-
Rake
:: Application (12) -
Rake
:: FileTask (1) -
Rake
:: Task (2)
モジュール
- Rake (2)
-
Rake
:: TaskManager (3)
キーワード
- Application (1)
-
DEFAULT
_ RAKEFILES (1) -
add
_ loader (1) - application= (2)
- init (1)
-
last
_ description (1) -
last
_ description= (1) -
load
_ rakefile (1) - name (1)
- needed? (1)
-
original
_ dir (1) - rakefile (1)
- run (1)
-
synthesize
_ file _ task (1) -
top
_ level (1) -
top
_ level _ tasks (1) -
tty
_ output= (1)
検索結果
先頭5件
-
Rake
. application -> Rake :: Application (73267.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 # application -> Rake :: Application (73261.0) -
自身を所有している Rake::Application のインスタンスを返します。
...自身を所有している Rake::Application のインスタンスを返します。... -
Rake
. application=(app) (36718.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=... -
Rake
:: Task # application=(app) (36658.0) -
自身を所有している Rake::Application のインスタンスをセットします。
...自身を所有している Rake::Application のインスタンスをセットします。
@param app 自身を所有しているアプリケーションを指定します。... -
Rake
:: Application # options -> OpenStruct (36343.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 (36007.0) -
Rake で使用するメインのクラスです。
...Rake で使用するメインのクラスです。
コマンドラインで rake コマンドを実行した時に作成され、実行されます。... -
Rake
:: TaskManager # last _ description=(description) (18661.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
:: Application # add _ loader(ext , loader) (18079.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;) (18061.0) -
コマンドラインオプションとアプリケーション名を初期化します。
...ンドラインオプションとアプリケーション名を初期化します。
//emlist[例][ruby]{
# Rakefile での記載例とする
task default: :test
task :test
Rake.application.name # => "rake"
Rake.application.init("MyApp") # => ["default"]
Rake.application.name # => "MyApp"
//}... -
Rake
:: Application # run (18061.0) -
Rake アプリケーションを実行します。
...
Rake アプリケーションを実行します。
このメソッドは以下の 3 ステップを実行します。
* コマンドラインオプションを初期化します。Rake::Application#init
* タスクを定義します。Rake::Application#load_rakefile
* コマンドラインで......指定されたタスクを実行します。Rake::Application#top_level... -
Rake
:: Application # tty _ output=(tty _ output _ state) (18061.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 # name -> String (18025.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 (18025.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 (18025.0) -
実際に使用されている Rakefile の名前を返します。
...実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}... -
Rake
:: Application # top _ level (18025.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 (18025.0) -
コマンドラインで指定されたタスクのリストを返します。
...コマンドラインで指定されたタスクのリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.top_level_tasks # => ["default"]
end
//}... -
Rake
:: Application # load _ rakefile (18007.0) -
Rakefile を探してロードします。
...
Rakefile を探してロードします。... -
Rake
:: Application :: DEFAULT _ RAKEFILES -> Array (18007.0) -
デフォルトで Rakefile として扱うファイル名の配列を返します。
...デフォルトで Rakefile として扱うファイル名の配列を返します。
'rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb' が指定されています。... -
Rake
:: TaskManager # last _ description -> String (9325.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
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (61.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 =... -
Rake
:: FileTask # needed? -> bool (43.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...