Class: Bulldogger::ExecutionTarget::Target

Inherits:
Data
  • Object
show all
Defined in:
lib/bulldogger/execution_target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#index ⇒ Object (readonly)

Returns the value of attribute index

Returns:

  • (Object) —

    the current value of index



10
11
12
# File 'lib/bulldogger/execution_target.rb', line 10

def index
  @index
end

#method ⇒ Object (readonly)

Returns the value of attribute method

Returns:

  • (Object) —

    the current value of method



10
11
12
# File 'lib/bulldogger/execution_target.rb', line 10

def method
  @method
end

#path ⇒ Object (readonly)

Returns the value of attribute path

Returns:

  • (Object) —

    the current value of path



10
11
12
# File 'lib/bulldogger/execution_target.rb', line 10

def path
  @path
end

#root ⇒ Object (readonly)

Returns the value of attribute root

Returns:

  • (Object) —

    the current value of root



10
11
12
# File 'lib/bulldogger/execution_target.rb', line 10

def root
  @root
end

Instance Method Details

#application_path?(verb, stderr) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
14
15
16
# File 'lib/bulldogger/execution_target.rb', line 11

def application_path?(verb, stderr)
  return true if path.start_with?("#{root}/") && !path.start_with?("#{root}/vendor/bundle/")

  stderr.puts "bulldogger #{verb}: target is not an application frame; use the frames index, read the gem source, or use probe"
  false
end