Sha256: 332694e1dc048b4e539dfc59495618b8cf820d1c5b5596b5164310d015cd63cb
Contents?: true
Size: 954 Bytes
Versions: 1
Compression:
Stored size: 954 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 'hydraulic_brake' fail "Please supply an API Key as the first argument" if ARGV.empty? host = ARGV[1] secure = (ARGV[2] == "secure") exception = begin raise "Testing hydraulic brake notifier with secure = #{secure}. If you can see this, it works." rescue => foo foo end HydraulicBrake.configure do |config| config.secure = secure config.host = host config.api_key = ARGV.first end puts "Configuration:" HydraulicBrake.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}" HydraulicBrake.notify(exception)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydraulic_brake-0.0.0 | script/integration_test.rb |