go (AmqpUtils::Command)

    # File lib/amqp_utils/command.rb, line 68
      def go
        if options.prompt
          options[:password] = password()
          puts
        end

        %w(host port vhost user timeout).each do |val|
          AMQP.settings[val.to_sym] = options[val.to_sym]
        end
        AMQP.settings[:pass] = options.password
        AMQP.logging = options.verbose

        trap("INT") do
          if @nice_tried
            EM.stop
          else
            AMQP.stop { EM.stop }
            @nice_tried = true
          end
        end

        EM.run do
          amqp.connection_status do |status|
            if status == :disconnected
              Trollop::die "disconnected from #{AMQP.settings[:host]}:#{AMQP.settings[:port]}"
            end
          end

          mq.callback { execute }
        end
      end