lib/slacked/slack_post.rb in slacked-0.6.0 vs lib/slacked/slack_post.rb in slacked-0.7.0
- old
+ new
@@ -1,9 +1,9 @@
module Slacked
class << self
- def post
+ def post message = ENV["SLACK_MESSAGE"]
send = Slack::Notifier.new ENV["SLACK_WEBHOOK"]
- send.ping ENV["SLACK_MESSAGE"], icon_emoji: ":ghost:"
+ send.ping message, icon_emoji: ":ghost:"
end
end
end