595件ヒット
[1-100件を表示]
(0.156秒)
種類
- インスタンスメソッド (473)
- 特異メソッド (55)
- 文書 (34)
- 定数 (22)
- ライブラリ (11)
ライブラリ
- rake (550)
クラス
-
Rake
:: Application (66) -
Rake
:: FileList (187) -
Rake
:: FileTask (22) -
Rake
:: InvocationChain (44) -
Rake
:: TaskArguments (55)
モジュール
- Rake (22)
-
Rake
:: Cloneable (22) -
Rake
:: TaskManager (110) - RakeFileUtils (22)
キーワード
- == (11)
-
DEFAULT
_ IGNORE _ PATTERNS (11) -
DEFAULT
_ RAKEFILES (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 3
. 1 . 0 (3) - Ruby用語集 (11)
- [] (22)
- append (22)
- application (11)
-
clear
_ exclude (11) - clone (11)
-
current
_ scope (11) -
define
_ task (11) - dup (11)
-
excluded
_ from _ list? (11) - existing (11)
- existing! (11)
- ext (11)
- gsub! (11)
- import (11)
-
in
_ namespace (11) - intern (11)
-
is
_ a? (11) -
kind
_ of? (11) -
last
_ comment (11) -
last
_ description (11) - lookup (11)
- member? (11)
- name (11)
- names (11)
- needed? (11)
-
new
_ scope (11) -
nowrite
_ flag (11) -
original
_ dir (22) - pathmap (11)
- rakefile (11)
- resolve (11)
- sub! (11)
-
synthesize
_ file _ task (11) - tasks (11)
-
to
_ a (11) -
to
_ ary (11) -
to
_ hash (11) -
to
_ s (22) -
top
_ level _ tasks (11) -
verbose
_ flag (11) -
with
_ defaults (11)
検索結果
先頭5件
-
rake (44310.0)
-
Rake というコマンドラインツールを扱うライブラリです。
...Rake というコマンドラインツールを扱うライブラリです。
=== Rake とは
Rake は Make によく似た機能を持つ Ruby で書かれたシンプルなビルドツールです。
Rake は以下のような特徴を持っています。
* Rakefile (Rake における Makef......す。
* Rakefile をより簡単に作成するためにこのライブラリにはいくつかのタスクが同梱されています。
@see make(1)
=== Rake コマンドの使い方
$ rake --help
rake [-f rakefile] {options} targets...
Options are ...
-C, --classic-namespace......:
# coding: utf-8
task :hello do
puts 'do task hello!'
end
動的にタスクを定義する例:
# coding: utf-8
require 'rake/testtask'
require 'rake/clean' # clean, clobber の二つのタスクを定義
task :default => [:test]
1.upto(8) do |n|
Rake::TestTask.new("t... -
Rake
:: Application :: DEFAULT _ RAKEFILES -> Array (32501.0) -
デフォルトで Rakefile として扱うファイル名の配列を返します。
...デフォルトで Rakefile として扱うファイル名の配列を返します。
'rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb' が指定されています。... -
Rake
:: Application # rakefile -> String (26324.0) -
実際に使用されている Rakefile の名前を返します。
...実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}... -
Rake
. original _ dir -> String (23340.0) -
Rake アプリケーションを開始したディレクトリを返します。
...
Rake アプリケーションを開始したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.original_dir # => "/path/to/dir"
end
//}... -
Rake
:: FileList :: DEFAULT _ IGNORE _ PATTERNS -> Array (23301.0) -
デフォルトで除外するパターンのリストです。
デフォルトで除外するパターンのリストです。 -
Rake
. application -> Rake :: Application (20437.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>,
#......orted=[],
# @last_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_dir="/path/to/dir",
# @pending_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::... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (20360.0) -
パラメータにデフォルト値をセットします。
...セットします。
@param defaults デフォルト値として使用するキーと値を格納したハッシュを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name......2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
arguments.with_defaults({ default_key: "default_value"}) # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
arguments.to_hash......# => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
end
//}... -
Rake
:: TaskManager # intern(task _ class , task _ name) -> Rake :: Task (17355.0) -
タスクを検索します。
...param task_class タスクのクラスを指定します。
@param task_name タスクの名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.intern(Rake::Task, "test_rake_app") # => <Rake:......:Task test_rake_app => []>
task.application.intern(Rake::Task, "sample_task") # => <Rake::Task sample_task => []>
end
//}... -
Rake
:: Application # original _ dir -> String (17340.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
:: TaskManager # current _ scope -> Array (17324.0) -
現在のスコープを返します。
...現在のスコープを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.current_scope # => LL()
end
//}...