るりまサーチ

最速Rubyリファレンスマニュアル検索!
198件ヒット [1-100件を表示] (0.039秒)

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io readlines
  5. io each_line

モジュール

キーワード

検索結果

<< 1 2 > >>

Rake::InvocationChain.new(task_name, tail) (21115.0)

与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。

...前の Rake::InvocationChain を用いて自身を初期化します。

@param task_name タスク名を指定します。

@param tail 一つ前の Rake::InvocationChain を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app d...
...o
tail = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
tail.to_s # => "TOP => task_a"
b = Rake::InvocationChain.new("task_b", tail)
b.to_s # => "TOP => task_a => task_b"
end
//}...

Rake::PackageTask.new(name = nil, version = nil) {|t| ... } -> Rake::PackageTask (18208.0)

自身を初期化してタスクを定義します。

...@param version パッケージのバージョンを指定します。
':noversion' というシンボルを指定するとバージョン情報をセットしません。

//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'

Rake
::PackageTask.new("sample",...
...task.package_dir = "./pkg"
package_task.package_files.include("lib/**/*")
end

# rake -T を実行すると以下になる
# => rake clobber_package # Remove package products
# rake package # Build all the packages
# rake repackage # Force a rebuild of the package files
//}...

Rake.application=(app) (6114.0)

現在の Rake アプリケーションをセットします。

...現在の Rake アプリケーションをセットします。

@param app Rake::Application のインスタンスを指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

require 'pp'

task default: :test_rake_app
task :test_rake_app do
app = Rake::Application.new
app.tty_...
...output = true
Rake
.application = app
pp Rake.application
end

# => #<Rake::Application:0x00005624e6c30eb8
# @default_loader=#<Rake::DefaultLoader:0x00005624e6c30cd8>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x00005624e6c30bc0>,
#...
...".rf"=>#<Rake::DefaultLoader:0x00005624e6c30b48>,
# ".rake"=>#<Rake::DefaultLoader:0x00005624e6c30a80>},
# @name="rake",
# @options=
# #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=...

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (3108.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::Application#add_loader(ext, loader) (3014.0)

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

...e "rake/loaders/makefile"

# Rakefile での記載例とする

task default: :test
task :test

makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO
.write("sample.mf", makefile)
Rake
.application.add_loader("mf", Rake::MakefileLoader.new)
Rake
.application.add_import("sample.mf")
Rake
::...
...Task.task_defined?("a") # => false
Rake
.application.load_imports
Rake
::Task.task_defined?("a") # => true
//}...

絞り込み条件を変える

Rake::InvocationChain#member?(task_name) -> bool (3008.0)

与えられたタスク名が自身に含まれる場合は真を返します。 そうでない場合は偽を返します。

...します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
invocation_chain = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.member?("task_a") # => true
invocation_chain.member?("task_b") # => fal...

Rake::InvocationChain#to_s -> String (3008.0)

トップレベルのタスクから自身までの依存関係を文字列として返します。

...の依存関係を文字列として返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.to_s # => "TOP => task_a"
end
//}...

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (120.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

...String#ext を適用した新しい Rake::FileList を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO
.write("test1.rb", "test")
IO
.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")...

Rake::FileList#resolve -> self (26.0)

追加リストと除外リストを評価します。

...ストを評価します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO
.write("test.rb", "test")
IO
.write("test.java", "test")
IO
.write("test.js", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("*.rb")
file_list.include("*.java")
file_list...

Rake::PackageTask#package_files=(file_list) (25.0)

パッケージに含むファイルリストを設定します。

...//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'

IO
.write("test1.rb", "test")
IO
.write("test2.rb", "test")

Rake
::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_files # => []
package_task.package_files = FileList.new("test1.rb", "test2...

絞り込み条件を変える

<< 1 2 > >>