Sha256: 664e44c8ec62db5e7b64a75a107fd4dc52df45e14f2e403f419cb6bab6dff978
Contents?: true
Size: 967 Bytes
Versions: 4
Compression:
Stored size: 967 Bytes
Contents
# # Bolt::Notifier # # The Notifier sends notification of the test results to the user # module Bolt class Notifier attr_accessor :selected # Constructor def initialize # find appropriate listener $stdout.puts "** Using #{notifier.class}... \n" # launch appropriate listener # notifier.new end # Pick a listener to launch def notifier return selected if selected self.selected= Bolt::Notifiers::Generic.new # growl output = %x[which growlnotify] if output.to_s.include?('/growlnotify') self.selected= Bolt::Notifiers::Growl.new end #self.selected= Bolt::Listeners::Generic # self.selected= Bolt::Listeners::OSX if os_string.include?("darwin") #self.selected= Bolt::Listeners::Windows if os_string.include?("mswin") #self.selected= Bolt::Listeners::Linux if os_string.include?("linux") selected end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
marcinbunsch-bolt-0.1.0 | lib/bolt/notifier.rb |
marcinbunsch-bolt-0.1.4 | lib/bolt/notifier.rb |
marcinbunsch-bolt-0.1.6 | lib/bolt/notifier.rb |
marcinbunsch-bolt-0.1.7 | lib/bolt/notifier.rb |