Sha256: d14949fe782bbf728e03f672cabdb91af1579e3b5c73ba424d8295e3c3e2536d

Contents?: true

Size: 655 Bytes

Versions: 1

Compression:

Stored size: 655 Bytes

Contents

#!/usr/bin/env ruby
# tdl-test-lights - do a test of the lighting
require 'yaml'
require 'test_driven_lighting'
include TestDrivenLighting

puts "Sending test messages to your lights..."
puts "Loading config..."
config = YAML::load_file(File.expand_path('~/.test_driven_lighting.conf'))
bunny_config = config[:bunny]

puts "Connecting to message queue..."
sender = Sender.new bunny_config

puts "Sending test failed message..."
sender.message_send "fail", "test"
sleep 0.5

puts "Sending test pending message..."
sender.message_send "pending", "test"
sleep 0.5

puts "Sending suite passed message..."
sender.message_send "pass", "suite"

puts "All done!"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test_driven_lighting-1.1.0 bin/tdl-test-lighting