lib/raven/tasks.rb in sentry-raven-0.7.1 vs lib/raven/tasks.rb in sentry-raven-0.8.0
- old
+ new
@@ -3,11 +3,10 @@
require 'raven/cli'
namespace :raven do
desc "Send a test event to the remote Sentry server"
task :test, [:dsn] do |t, args|
- if defined? Rails
- Rake::Task["environment"].invoke
- end
- Raven::CLI::test(args.dsn)
+ Rake::Task["environment"].invoke if defined? Rails
+
+ Raven::CLI.test(args.dsn)
end
end