phallstrom / slackistrano

Slack integration for Capistrano deployments.
MIT License
373 stars 74 forks source link

How can I set custom slack_username #61

Closed medesko closed 8 years ago

medesko commented 8 years ago

Hi @phallstrom,

Thank You for this amazing Job!

How can I set custom slack_username and slack_icon_url ?

phallstrom commented 8 years ago

You need to define your own custom messaging class per

https://github.com/phallstrom/slackistrano#customizing-the-messaging

with a class something like this:

module Slackistrano
  class CustomMessaging < Messaging::Base
     def icon_url
        'http://some.site/path/to/image.png'
      end

      def username
        'Medesko'
      end
  end
end