Sha256: 2f37bdf8acd000d459f5ab43c60f0a07095d283b7be1ef35f29685ee29797901
Contents?: true
Size: 921 Bytes
Versions: 4
Compression:
Stored size: 921 Bytes
Contents
#!/usr/bin/env ruby require 'gocd-slack-server' gocd_addr = ARGV[0] slack_hook = ARGV[1] bot_name = ARGV[2] user_pass = ARGV[3] def usage puts "-------------------------------------------------------------------------------------------" puts "usage:" puts "\t(sh)>gocdss 'http://localhost:5832' 'https://hooks.slack.com/services/abo3ot' my_bot_name" puts "\t(sh)>gocdss 'http://localhost:5832' 'https://hooks.slack.com/services/abo3ot' my_bot_name user:pass" puts "-------------------------------------------------------------------------------------------" exit 1 end usage unless gocd_addr and slack_hook and bot_name server = Gocdss::Server.new gocd_addr: gocd_addr, slack_hook: slack_hook, bot_name: bot_name, user_pass:user_pass server.start #require 'json' #events = JSON.parse(File.read "./spec/assets/cancelled_first") #loop do #server.process_event events.shift #break if events.empty? #end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
boojs-0.0.2 | bin/boojs |
gocd-slack-server-0.0.26 | bin/gocdss |
gocd-slack-server-0.0.25 | bin/gocdss |
gocd-slack-server-0.0.23 | bin/gocdss |