Sha256: b6a4dba74db62a15b132ee3a71bceca95e1b65198334d0ef831aaacaef129d1f

Contents?: true

Size: 712 Bytes

Versions: 5

Compression:

Stored size: 712 Bytes

Contents

require "appsignal/demo"

module Appsignal
  class CLI
    class Demo
      class << self
        def run(options = {})
          ENV["APPSIGNAL_APP_ENV"] = options[:environment] if options[:environment]

          puts "Sending demonstration sample data..."
          if Appsignal::Demo.transmit
            puts "Demonstration sample data sent!"
            puts "It may take about a minute for the data to appear on https://appsignal.com/accounts"
          else
            puts "Error: Unable to start the AppSignal agent and send data to AppSignal.com"
            puts "Please use `appsignal diagnose` to debug your configuration."
            exit 1
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
appsignal-2.1.2 lib/appsignal/cli/demo.rb
appsignal-2.1.1 lib/appsignal/cli/demo.rb
appsignal-2.1.1.beta.1 lib/appsignal/cli/demo.rb
appsignal-2.1.0 lib/appsignal/cli/demo.rb
appsignal-2.0.6 lib/appsignal/cli/demo.rb