Ruby 2.3.0 リファレンスマニュアル > ライブラリ一覧 > rakeライブラリ > Rake::Applicationクラス

class Rake::Application

クラス・モジュールの継承リスト: Rake::Application < Rake::TaskManager < Object < Kernel < BasicObject

要約

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

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

インスタンスメソッド

定義 説明
add_loader(ext, loader)

与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを自身に追加します。

init(app_name = 'rake')

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

load_rakefile

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

name -> String

アプリケーションの名前を返します。通常は 'rake' という名前を返します。

options -> OpenStruct

コマンドラインで与えられたアプリケーションのオプションを返します。

original_dir -> String

rake コマンドを実行したディレクトリを返します。

rakefile -> String

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

run

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

top_level

Rake アプリケーションに与えられたトップレベルのタスク (コマンドラインで指定されたタスク) を実行します。

top_level_tasks -> Array

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

tty_output=(tty_output_state)

TTY に対する出力状態を上書きします。

定数

定義 説明
DEFAULT_RAKEFILES -> Array

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

継承したメソッド

! != __id__ __send__ instance_eval instance_exec method_missing singleton_method_added singleton_method_removed singleton_method_undefined !~ <=> == === =~ _dump class clone define_singleton_method display enum_for eql? equal? extend freeze frozen? hash initialize initialize_copy inspect instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? itself marshal_dump marshal_load method methods nil? object_id pretty_inspect pretty_print pretty_print_cycle pretty_print_inspect pretty_print_instance_variables private_methods protected_methods psych_to_yaml public_method public_methods public_send remove_instance_variable respond_to? respond_to_missing? send singleton_class singleton_method singleton_methods taint tainted? tap to_a to_ary to_hash to_int to_io to_proc to_regexp to_s to_str trust untaint untrust untrusted? .new .yaml_tag ::ARGF ::ARGV ::DATA ::ENV ::FALSE ::NIL ::RUBY_COPYRIGHT ::RUBY_DESCRIPTION ::RUBY_ENGINE ::RUBY_ENGINE_VERSION ::RUBY_PATCHLEVEL ::RUBY_PLATFORM ::RUBY_RELEASE_DATE ::RUBY_REVISION ::RUBY_VERSION ::SCRIPT_LINES__ ::STDERR ::STDIN ::STDOUT ::TOPLEVEL_BINDING ::TRUE [] clear create_rule current_scope define_task enhance_with_matching_rule in_namespace intern last_comment last_description= lookup resolve_args synthesize_file_task tasks