Sha256: 129c793c7318bd7fc98054dee53f3a17ce8212015343c8757fc0c17bf655a381
Contents?: true
Size: 978 Bytes
Versions: 2
Compression:
Stored size: 978 Bytes
Contents
#!/usr/bin/env ruby require 'logger' require 'fileutils' RAILS_ENV = "production" RAILS_ROOT = FileUtils.pwd RAILS_DEFAULT_LOGGER = Logger.new(STDOUT) $: << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require 'projectlocker_pulse' require 'rails/init' fail "Please supply an API Key as the first argument" if ARGV.empty? host = ARGV[1] host ||= "errors.projectlocker.com" secure = (ARGV[2] == "secure") exception = begin raise "Testing Pulse notifier with secure = #{secure}. If you can see this, it works." rescue => foo foo end Pulse.configure do |config| config.secure = secure config.host = host config.api_key = ARGV.first end puts "Configuration:" Pulse.configuration.to_hash.each do |key, value| puts sprintf("%25s: %s", key.to_s, value.inspect.slice(0, 55)) end puts "Sending #{secure ? "" : "in"}secure notification to project with key #{ARGV.first}" Pulse.notify(exception)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
projectlocker_pulse-1.0.0 | script/integration_test.rb |
projectlocker_pulse-0.2.1 | script/integration_test.rb |