Module: Buildr::Build

Includes:
Extension
Included in:
Project
Defined in:
lib/buildr/core/build.rb

Instance Method Summary collapse

Methods included from Extension

included

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

#reportsObject

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.expand(: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

#targetObject

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.expand(: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