lib/mshard/ding.rb in mshard-0.5.1 vs lib/mshard/ding.rb in mshard-0.6.0

- old
+ new

@@ -1,17 +1,14 @@ +# frozen_string_literal: true + require 'thor' require 'mshard' module MShard class Ding < Thor::Group namespace :'' argument :text, default: 'Ding!', required: false def ding - MShard.new.set_safe( - slack: true, - webhook_url: ENV['SLACK_WEBHOOK_URI'], - channel: ENV['SLACK_CHANNEL'], - text: text - ) + MShard.new.notify(text: text) end end end