Sha256: eba84bd81ee72be7b1b6a80a5af461a4fc05eb02755e107bdd66a62c9f3f2918

Contents?: true

Size: 826 Bytes

Versions: 19

Compression:

Stored size: 826 Bytes

Contents

#!/usr/bin/env ruby

require "raven"
require "raven/cli"
require "optparse"

options = {}

parser = OptionParser.new do |opt|
  opt.banner = "Usage: raven COMMAND [OPTIONS]"
  opt.separator  ""
  opt.separator  "Commands"
  opt.separator  "     test: send a test event"
  opt.separator  ""
  opt.separator  "Options"

  # opt.on("-e","--environment ENVIRONMENT","which environment you want server run") do |environment|
  #   options[:environment] = environment
  # end

  # opt.on("-d","--daemon","runing on daemon mode?") do
  #   options[:daemon] = true
  # end

  opt.on("-h","--help","help") do
    puts parser
  end
end

parser.parse!

case ARGV[0]
  when "test"
    dsn = ARGV[1] if ARGV.length > 1
    if !dsn
      puts "Usage: raven test <dsn>"
    else
      Raven::CLI::test(dsn)
    end
  else
    puts parser
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
sentry-raven-0.6.1 bin/raven
sentry-raven-0.12.2 bin/raven
sentry-raven-0.12.1 bin/raven
sentry-raven-0.12.0 bin/raven
mustwin-sentry-raven-0.11.2 bin/raven
sentry-raven-0.11.2 bin/raven
sentry-raven-0.11.1 bin/raven
sentry-raven-0.10.1 bin/raven
sentry-raven-0.9.4 bin/raven
sentry-raven-0.9.3 bin/raven
sentry-raven-0.9.2 bin/raven
sentry-raven-0.9.1 bin/raven
sentry-raven-0.9.0 bin/raven
sentry-raven-0.8.0 bin/raven
sentry-raven-0.7.1 bin/raven
sentry-raven-0.6.0 bin/raven
sentry-raven-0.5.0 bin/raven
sentry-raven-0.4.8 bin/raven
sentry-raven-0.4.7 bin/raven