lib/spacebunny/device/amqp.rb
# Check if client has been prepared.
Check if client has been prepared.
Check if client has been prepared .
def check_client
        unless client
          raise ClientNotSetup
        end
        unless client.connected?
          if raise_on_error
            raise ClientNotConnected
          else
            @logger.error 'Client not connected! Check internet connection'
            return false
          end
        end
        true
      end
def check_client unless client raise ClientNotSetup end unless client . connected? if raise_on_error raise ClientNotConnected else @logger . error 'Client not connected! Check internet connection' return false end end true end
Check if client has been prepared.
Check if client has been prepared .