Top Level Namespace
- Extended by:
- Buildr
- Includes:
- Rake::DSL
Defined Under Namespace
Modules: Buildr, FileUtils, Java, Rake, URI, Zip Classes: Object, OpenObject, ProgressBar
Constant Summary
Constants included from Buildr
Instance Method Summary collapse
-
#error(message) ⇒ Object
Show error message.
-
#info(message) ⇒ Object
Show optional information.
-
#trace(message) ⇒ Object
Show message.
- #trace?(*category) ⇒ Boolean
-
#warn(*message, uplevel: nil) ⇒ Object
Show warning message.
- #warn_without_color ⇒ Object
Methods included from Buildr
application, application=, artifact, artifact_ns, artifacts, concat, define, download, environment, filter, group, help, help, install, integration, options, options, project, projects, read, repositories, settings, struct, transitive, unzip, upload, write, zip
Instance Method Details
#error(message) ⇒ Object
Show error message. Use this when you need to show an error message and not throwing an exception that will stop the build.
607 608 609 |
# File 'lib/buildr/core/application.rb', line 607 def error() puts Buildr::Console.color(.to_s, :red) end |
#info(message) ⇒ Object
Show optional information. The message is printed only when running in verbose mode (the default).
613 614 615 |
# File 'lib/buildr/core/application.rb', line 613 def info() puts if verbose end |
#trace(message) ⇒ Object
Show message. The message is printed out only when running in trace mode.
618 619 620 |
# File 'lib/buildr/core/application.rb', line 618 def trace() puts if Buildr.application..trace end |
#trace?(*category) ⇒ Boolean
622 623 624 625 626 627 628 |
# File 'lib/buildr/core/application.rb', line 622 def trace?(*category) = Buildr.application. return .trace if category.empty? return true if .trace_all return false unless .trace_categories .trace_categories.include?(category.first) end |
#warn(*message, uplevel: nil) ⇒ Object
Show warning message.
601 602 603 |
# File 'lib/buildr/core/application.rb', line 601 def warn(*, uplevel: nil) warn_without_color(Buildr::Console.color(.join(' '), :blue), :uplevel => uplevel) if verbose end |
#warn_without_color ⇒ Object
598 |
# File 'lib/buildr/core/application.rb', line 598 alias :warn_without_color :warn |