Sha256: f941092fb327aa82d119b4477ecd97a67cf4b1c384e029e687f117318dec1c3f

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

# encoding: utf-8

raise 'WTF!?!?! Where is Rails man? ❨╯°□°❩╯︵┻━┻' unless defined?(Rails)

require 'lens/core'
require 'lens/railtie'
require 'lens_memprof'

module Lens
  class << self
    attr_accessor :sender
    attr_writer :configuration

    def configure
      yield(configuration)

      self.sender = Sender.new(configuration)
      self
    end

    def configuration
      @configuration ||= Configuration.new
    end

    def start
      raise ConfigurationError, 'application key required' unless configuration.app_key

      Worker.start(configuration)
    end

    def stop
      Worker.stop
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lens-0.0.8.2 lib/lens.rb