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.



96
97
98
# File 'lib/buildr/core/build.rb', line 96

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.



105
106
107
# File 'lib/buildr/core/build.rb', line 105

def clean(*prereqs, &block)
  task('clean').enhance prereqs, &block
end

#reportsObject

Deprecated: Use path_to(:reports) instead.



80
81
82
83
# File 'lib/buildr/core/build.rb', line 80

def reports()
  Buildr.application.deprecated 'Use path_to(:reports) instead'
  layout.expand(:reports)
end

#reports=(dir) ⇒ Object

Deprecated: Use Layout instead.



86
87
88
89
# File 'lib/buildr/core/build.rb', line 86

def reports=(dir)
  Buildr.application.deprecated 'Use Layout instead'
  layout[:reports] = _(dir)
end

#targetObject

Deprecated: Use path_to(:target) instead.



68
69
70
71
# File 'lib/buildr/core/build.rb', line 68

def target
  Buildr.application.deprecated 'Use path_to(:target) instead'
  layout.expand(:target)
end

#target=(dir) ⇒ Object

Deprecated: Use Layout instead.



74
75
76
77
# File 'lib/buildr/core/build.rb', line 74

def target=(dir)
  Buildr.application.deprecated 'Use Layout instead'
  layout[:target] = _(dir)
end