816件ヒット
[1-100件を表示]
(0.062秒)
種類
- インスタンスメソッド (671)
- 特異メソッド (66)
- ライブラリ (44)
- 文書 (35)
ライブラリ
- rake (638)
-
rake
/ packagetask (99)
クラス
- Module (11)
-
Rake
:: Application (55) -
Rake
:: FileList (176) -
Rake
:: FileTask (22) -
Rake
:: InvocationChain (44) -
Rake
:: InvocationChain :: EmptyInvocationChain (11) -
Rake
:: NameSpace (22) -
Rake
:: PackageTask (99) -
Rake
:: TaskArguments (55)
モジュール
- FileUtils (11)
- Kernel (55)
- Rake (22)
-
Rake
:: Cloneable (22) -
Rake
:: TaskManager (110) - RakeFileUtils (22)
キーワード
- == (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 3
. 1 . 0 (3) - Ruby用語集 (11)
- [] (33)
- append (33)
- application (11)
-
clear
_ exclude (11) - clone (11)
-
current
_ scope (11) -
define
_ task (11) - desc (11)
- dup (11)
-
excluded
_ from _ list? (11) - existing (11)
- existing! (11)
- ext (11)
- file (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 (22)
- names (11)
- namespace (11)
-
need
_ tar (11) -
need
_ tar _ bz2 (11) -
need
_ tar _ gz (11) -
need
_ zip (11) - needed? (11)
- new (11)
-
new
_ scope (11) -
nowrite
_ flag (11) -
original
_ dir (22) -
package
_ dir (11) -
package
_ dir _ path (11) -
package
_ files (11) - pathmap (11)
-
rake
/ gempackagetask (11) -
rake
/ packagetask (11) -
rake
_ extension (11) - rakefile (11)
- resolve (11)
- rubygems (11)
- rule (11)
- sh (11)
- sub! (11)
-
synthesize
_ file _ task (11) - task (11)
- tasks (22)
-
to
_ a (11) -
to
_ ary (11) -
to
_ hash (11) -
to
_ s (22) -
top
_ level _ tasks (11) -
verbose
_ flag (11) -
with
_ defaults (11)
検索結果
先頭5件
-
rake (38316.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......Rakefile は普通の Ruby スクリプトと同じ文法で
書くことができるので工夫次第で Ruby にできることなら何でもできます。
簡単な例:
# coding: utf-8
task :hello do
puts 'do task hello!'
end
動的にタスクを定義する例:
# coding: utf-8... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (17353.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
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (17347.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 :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (17317.0) -
与えられた値を追加した Rake::InvocationChain を返します。
...与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。... -
Rake
. application -> Rake :: Application (17313.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>,
#......{".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_import......s=[],
# @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 => []>},
# @terminal_columns... -
Rake
:: Application # rakefile -> String (17224.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 (17140.0) -
Rake アプリケーションを開始したディレクトリを返します。
...
Rake アプリケーションを開始したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.original_dir # => "/path/to/dir"
end
//}... -
Module
# rake _ extension(method) { . . . } -> () (14225.0) -
与えられたブロック内で既に存在するメソッドを再定義しようとした場合に 警告を表示します。この場合、ブロックは評価されません。
...た場合に
警告を表示します。この場合、ブロックは評価されません。
@param method ブロック内で再定義する予定のメソッド名を指定します。
例:
class String
rake_extension("xyz") do
def xyz
...
end
end
end... -
Rake
:: TaskManager # intern(task _ class , task _ name) -> Rake :: Task (11255.0) -
タスクを検索します。
...[][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
:: TaskArguments # new _ scope(names) -> Rake :: TaskArguments (11247.0) -
与えられたパラメータ名のリストを使用して新しい Rake::TaskArguments を作成します。
...リストを使用して新しい Rake::TaskArguments を作成します。
@param names パラメータ名のリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "n......ame2"], ["value1", "value2"])
new_arguments = arguments.new_scope(["name3", "name4"])
p new_arguments # => #<Rake::TaskArguments >
p new_arguments.names # => ["name3", "name4"]
end
//}...