app/cyclid/plugins/action/slack.rb in cyclid-0.2.5 vs app/cyclid/plugins/action/slack.rb in cyclid-0.3.0
- old
+ new
@@ -41,18 +41,18 @@
begin
plugin_data = self.class.get_config(@ctx[:organization])
Cyclid.logger.debug "using plugin config #{plugin_data}"
config = plugin_data['config']
- subject = @subject % @ctx
+ subject = @subject ** @ctx
url = @url || config['webhook_url']
raise 'no webhook URL given' if url.nil?
- url = url % @ctx
+ url = url ** @ctx
Cyclid.logger.debug "sending notification to #{url}"
- message_text = @message % @ctx if @message
+ message_text = @message ** @ctx if @message
# Create a binding for the template
bind = binding
bind.local_variable_set(:ctx, @ctx)