るりまサーチ

最速Rubyリファレンスマニュアル検索!
816件ヒット [1-100件を表示] (0.062秒)
トップページ > クエリ:-[x] > クエリ:end[x] > クエリ:rake[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

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

//}...

絞り込み条件を変える

<< 1 2 3 ... > >>