Sha256: 05cd6882ddcc3f8560f560bdfe2564ecb216c7ca56b9e1dd247552232d5e545f
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
require 'stack-agent/configuration' require 'stack-agent/instance' module StackAgent VERSION = '0.1.0' class << self attr_writer :configuration end def self.configuration @configuration ||= StackAgent::Configuration.new end def self.reset @configuration = StackAgent::Configuration.new end def self.configure yield(configuration) end def self.register @instance = StackAgent::Instance.new @instance.register end def self.unregister raise 'Not registered' unless @instance && @instance.registered? @instance.unregister end def self.connect! register at_exit do unregister end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stack-agent-0.1.0 | lib/stack-agent.rb |