Sha256: fe9c3e3347cffc098bb09520f7765bbc34ed38855b1643d2289213063dc51cd5

Contents?: true

Size: 704 Bytes

Versions: 11

Compression:

Stored size: 704 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 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

11 entries across 11 versions & 1 rubygems

Version Path
appsignal-2.1.0.beta.1 lib/appsignal/cli/demo.rb
appsignal-2.0.5 lib/appsignal/cli/demo.rb
appsignal-2.0.5.beta.1 lib/appsignal/cli/demo.rb
appsignal-2.1.0.alpha.3 lib/appsignal/cli/demo.rb
appsignal-2.1.0.alpha.2 lib/appsignal/cli/demo.rb
appsignal-2.1.0.alpha.1 lib/appsignal/cli/demo.rb
appsignal-2.0.4 lib/appsignal/cli/demo.rb
appsignal-2.0.3 lib/appsignal/cli/demo.rb
appsignal-2.0.2 lib/appsignal/cli/demo.rb
appsignal-2.0.1 lib/appsignal/cli/demo.rb
appsignal-2.0.0 lib/appsignal/cli/demo.rb