Exception: Rubuild::Build::Dep::Error::Action

Inherits:
Rubuild::Build::Dep::Error show all
Defined in:
lib/rubuild/build/dep.rb

Overview

Rubuild::Build::Dep::Error::Action Error that occurs when calling the dependency block.

Instance Method Summary collapse

Constructor Details

#initialize(dep, error, build_context) ⇒ Action

Create a Rubuild::Build::Dep::Error::Action Used internally.

dep

The Rubuild::Build::Dep whose action raised error.

error

Exception raised while processing a Rubuild::Build::Dep action.

build_context

The Rubuild::Build::Context context in which the Rubuild::Build::Dep action was being executed.



56
57
58
59
60
# File 'lib/rubuild/build/dep.rb', line 56

def initialize(dep, error, build_context)
  super(dep, error.message)
  self.rubuild_build_dep_error_action__error = error
  self.rubuild_build_dep_error_action__build_context = build_context
end

Instance Method Details

#report(file) ⇒ Object

Rubuild::Build::Dep::Error::Action#intialize



62
63
64
65
66
# File 'lib/rubuild/build/dep.rb', line 62

def report(file)
  if self.error.respond_to?(:report)
    self.error.report(file)
  end
end