Sha256: 416d3e0fa7bb3ed23d77bc2e0781cf1db3f71cff01ca4a0adfa767f2e2f0bb51

Contents?: true

Size: 515 Bytes

Versions: 9

Compression:

Stored size: 515 Bytes

Contents

module Scout
  class Command
    class Realtime < Command
      def run
        streamer_command = @args.first
        # Spawn or stop streamer as needed
        if streamer_command.start_with?("start")
          puts "streamer command: start"
          Scout::StreamerDaemon.start_daemon(history, streamer_command, @hostname, @http_proxy)
        elsif streamer_command == "stop"
          puts "streamer command: stop"
          Scout::StreamerDaemon.stop_daemon(history)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scout-5.9.13 lib/scout/command/realtime.rb
scout-5.9.12 lib/scout/command/realtime.rb
scout-5.9.11 lib/scout/command/realtime.rb
scout-5.9.10.pre lib/scout/command/realtime.rb
scout-5.9.8 lib/scout/command/realtime.rb
scout-5.9.7.2.pre lib/scout/command/realtime.rb
scout-5.9.8.pre lib/scout/command/realtime.rb
scout-5.9.7.1 lib/scout/command/realtime.rb
scout-5.9.7.pre lib/scout/command/realtime.rb