lib/slackistrano/messaging/helpers.rb in slackistrano-3.8.1 vs lib/slackistrano/messaging/helpers.rb in slackistrano-3.8.2
- old
+ new
@@ -1,18 +1,18 @@
module Slackistrano
module Messaging
module Helpers
def icon_url
- 'https://raw.githubusercontent.com/phallstrom/slackistrano/master/images/slackistrano.png'
+ options.fetch(:icon_url, 'https://raw.githubusercontent.com/phallstrom/slackistrano/master/images/slackistrano.png')
end
def icon_emoji
- nil
+ options.fetch(:icon_emoji, nil)
end
def username
- 'Slackistrano'
+ options.fetch(:username, 'Slackistrano')
end
def deployer
ENV['USER'] || ENV['USERNAME']
end