Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > rakeライブラリ > Rake::Applicationクラス
クラスの継承リスト: Rake::Application < Rake::TaskManager < Object < Kernel < BasicObject
Rake で使用するメインのクラスです。
コマンドラインで rake コマンドを実行した時に作成され、実行されます。
定義 | 説明 | |
---|---|---|
add_import(file_name)
|
与えられたファイルをロード予定ファイルのリストに追加します。 |
|
add_loader(ext, loader)
|
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。 |
|
collect_tasks(argv) -> Array
|
コマンドライン引数を解析して実行するタスクのリストを返します。 |
|
const_warning(const_name)
|
トップレベルで定数を使用している場合に警告を表示します。 |
|
display_prerequisites
|
タスクとそのタスクに依存しているタスクを表示します。 |
|
display_tasks_and_comments
|
タスクとコメントを表示します。 |
|
dynamic_width -> Fixnum
|
ターミナルの幅を計算します。 |
|
dynamic_width_stty
|
stty(1) を用いてターミナルの幅を計算します。 |
|
dynamic_width_tput
|
tput(1) を用いてターミナルの幅を計算します。 |
|
find_rakefile_location -> Array | nil
|
Rakefile とそのファイルがあったディレクトリのペアを返します。 |
|
handle_options
|
コマンドラインオプションを OptionParser に登録します。 |
|
have_rakefile -> String | nil
|
Rakefile がカレントディレクトリに存在する場合はそのファイル名を返します。 そうでない場合は nil を返します。 |
|
init(app_name = 'rake')
|
コマンドラインオプションとアプリケーション名を初期化します。 |
|
invoke_task(task_string)
|
与えられた文字列を解析してタスクを実行します。 |
|
load_imports
|
ロード予定のファイルを全てロードします。 |
|
load_rakefile
|
Rakefile を探してロードします。 |
|
name -> String
|
アプリケーションの名前を返します。通常は 'rake' という名前を返します。 |
|
options -> OpenStruct
|
コマンドラインで与えられたアプリケーションのオプションを返します。 |
|
original_dir -> String
|
rake コマンドを実行したディレクトリを返します。 |
|
parse_task_string(string) -> [String, Array]
|
与えられた文字列を解析して、タスク名とそれに与えるパラメータのペアを返します。 |
|
rake_require(file_name, paths = $LOAD_PATH, loaded = $") -> bool
|
Kernel#require に似ていますが、*.rb ファイルではなく *.rake ファイルを探索します。 |
|
rakefile -> String
|
実際に使用されている Rakefile の名前を返します。 |
|
rakefile_location -> String
|
Rakefile のパスを返します。 |
|
raw_load_rakefile
|
Rakefile をロードします。 |
|
run
|
Rake アプリケーションを実行します。 |
|
standard_exception_handling { ... }
|
与えられたブロックを評価する際に発生する標準的な例外を補足して アプリケーションを終了させます。 |
|
standard_rake_options -> Array
|
Rake コマンドで使用する標準的なコマンドラインオプションのリストを返します。 |
|
system_dir -> String
|
システム全体の Rakefile が格納されているディレクトリを返します。 |
|
terminal_width -> Fixnum
|
ターミナルの幅を返します。 |
|
top_level
|
Rake アプリケーションに与えられたトップレベルのタスク (コマンドラインで指定されたタスク) を実行します。 |
|
top_level_tasks -> Array
|
コマンドラインで指定されたタスクのリストを返します。 |
|
truncate(string, width) -> String
|
与えられた文字列を与えられた幅で切り詰めます。 |
|
truncate_output?
|
||
tty_output=(tty_output_state)
|
TTY に対する出力状態を上書きします。 |
|
tty_output? -> bool
|
TTY に出力している場合は真を返します。そうでない場合は偽を返します。 |
|
unix? -> bool
|
現在のプラットフォームが UNIX 系である場合、真を返します。 そうでない場合は偽を返します。 |
|
windows? -> bool
|
現在のプラットフォームが Windows 系である場合、真を返します。 そうでない場合は偽を返します。 |
定義 | 説明 | |
---|---|---|
DEFAULT_RAKEFILES -> Array
|
デフォルトで Rakefile として扱うファイル名の配列を返します。 |
!
!=
==
===
=~
__id__
__send__
_dump
class
clone
dclone
display
enum_for
eql?
equal?
extend
freeze
frozen?
hash
initialize
initialize_copy
inspect
instance_eval
instance_exec
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
marshal_dump
marshal_load
method
method_missing
methods
must_be
must_be_close_to
must_be_empty
must_be_instance_of
must_be_kind_of
must_be_nil
must_be_same_as
must_be_within_epsilon
must_equal
must_include
must_match
must_raise
must_respond_to
must_send
must_throw
nil?
pretty_inspect
pretty_print
pretty_print_cycle
pretty_print_inspect
pretty_print_instance_variables
private_methods
protected_methods
public_methods
remove_instance_variable
respond_to?
respond_to_missing?
singleton_class
singleton_method_added
singleton_method_removed
singleton_method_undefined
singleton_methods
taint
tainted?
tap
to_a
to_ary
to_hash
to_int
to_io
to_proc
to_regexp
to_s
to_str
to_yaml
to_yaml_properties
to_yaml_style
trust
untaint
untrust
untrusted?
wont_be
wont_be_close_to
wont_be_empty
wont_be_instance_of
wont_be_kind_of
wont_be_nil
wont_be_same_as
wont_be_within_epsilon
wont_equal
wont_include
wont_match
wont_respond_to
.new
[]
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