Sha256: f9835edb767357f3bb47a4a7c6c04d2424c6382457a4c509fa0d9f21782fe3df

Contents?: true

Size: 812 Bytes

Versions: 9

Compression:

Stored size: 812 Bytes

Contents

#!/usr/bin/env ruby

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

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

9 entries across 9 versions & 1 rubygems

Version Path
sentry-raven-0.15.2 bin/raven
sentry-raven-0.15.1 bin/raven
sentry-raven-0.15.0 bin/raven
sentry-raven-0.14.0 bin/raven
sentry-raven-0.13.3 bin/raven
sentry-raven-0.13.2 bin/raven
sentry-raven-0.13.1 bin/raven
sentry-raven-0.13.0 bin/raven
sentry-raven-0.12.3 bin/raven