module Spore

The top level Spore module. The entrypoint for the application logic.

Attributes

instrumenter[RW]

Public Instance Methods

instrument(name, payload = {}, &block) click to toggle source
# File lib/spore.rb, line 24
def instrument(name, payload = {}, &block)
  if instrumenter
    instrumenter.instrument(name, payload, &block)
  else
    block.call
  end
end
load(*filenames) click to toggle source
# File lib/spore.rb, line 13
def load(*filenames)
  env = Environment.new
  instrument("spore.load", :env => env) { env.apply }
end
overload(*filenames) click to toggle source

same as ‘load`, but will override existing values in `ENV`

# File lib/spore.rb, line 19
def overload(*filenames)
  env = Environment.new
  instrument("spore.overload", :env => env) { env.apply! }
end