Module: Buildr::Build
Instance Method Summary collapse
-
#build(*prereqs, &block) ⇒ Object
:call-seq: build(*prereqs) => task build { |task| .. } => task.
-
#clean(*prereqs, &block) ⇒ Object
:call-seq: clean(*prereqs) => task clean { |task| .. } => task.
-
#reports ⇒ Object
Deprecated: Use path_to(:reports) instead.
-
#reports=(dir) ⇒ Object
Deprecated: Use Layout instead.
-
#target ⇒ Object
Deprecated: Use path_to(:target) instead.
-
#target=(dir) ⇒ Object
Deprecated: Use Layout instead.
Methods included from Extension
Instance Method Details
#build(*prereqs, &block) ⇒ Object
:call-seq:
build(*prereqs) => task
build { |task| .. } => task
Returns the project’s build task. With arguments or block, also enhances that task.
95 96 97 |
# File 'lib/buildr/core/build.rb', line 95 def build(*prereqs, &block) task('build').enhance prereqs, &block end |
#clean(*prereqs, &block) ⇒ Object
:call-seq:
clean(*prereqs) => task
clean { |task| .. } => task
Returns the project’s clean task. With arguments or block, also enhances that task.
104 105 106 |
# File 'lib/buildr/core/build.rb', line 104 def clean(*prereqs, &block) task('clean').enhance prereqs, &block end |
#reports ⇒ Object
Deprecated: Use path_to(:reports) instead.
79 80 81 82 |
# File 'lib/buildr/core/build.rb', line 79 def reports() Buildr.application.deprecated 'Use path_to(:reports) instead' layout.(:reports) end |
#reports=(dir) ⇒ Object
Deprecated: Use Layout instead.
85 86 87 88 |
# File 'lib/buildr/core/build.rb', line 85 def reports=(dir) Buildr.application.deprecated 'Use Layout instead' layout[:reports] = _(dir) end |
#target ⇒ Object
Deprecated: Use path_to(:target) instead.
67 68 69 70 |
# File 'lib/buildr/core/build.rb', line 67 def target Buildr.application.deprecated 'Use path_to(:target) instead' layout.(:target) end |
#target=(dir) ⇒ Object
Deprecated: Use Layout instead.
73 74 75 76 |
# File 'lib/buildr/core/build.rb', line 73 def target=(dir) Buildr.application.deprecated 'Use Layout instead' layout[:target] = _(dir) end |