lib/stack-agent.rb in stack-agent-0.1.0 vs lib/stack-agent.rb in stack-agent-0.1.1

- old
+ new

@@ -1,10 +1,10 @@ require 'stack-agent/configuration' require 'stack-agent/instance' module StackAgent - VERSION = '0.1.0' + VERSION = '0.1.1' class << self attr_writer :configuration end @@ -20,15 +20,15 @@ yield(configuration) end def self.register @instance = StackAgent::Instance.new - @instance.register + puts "Registered Stack #{@instance.instance_token}" if @instance.register end def self.unregister - raise 'Not registered' unless @instance && @instance.registered? - @instance.unregister + return false unless @instance + puts "Unregistered Stack #{@instance.instance_token}" if @instance.unregister end def self.connect! register