Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple workbook URLs #91

Open
Abhichede opened this issue May 22, 2019 · 2 comments
Open

Support for multiple workbook URLs #91

Abhichede opened this issue May 22, 2019 · 2 comments

Comments

@Abhichede
Copy link

slackistrano currently accepts a hash as below

set :slackistrano, {
  klass: Slackistrano::CustomMessaging,
  channel: '#channel',
  webhook: 'https://webhook-url
}

I have a need where I want to get notifications of deployments on two different slack workspaces. I could write a rake task to notify other workspace and use it in cap deploy.
What if we add a feature to support array of such configs as mentioned below:

set :slackistrano, [{
  klass: Slackistrano::CustomMessaging,
  channel: '#channel1',
  webhook: 'https://webhook-url1
},
{
  klass: Slackistrano::CustomMessaging,
  channel: '#channel2',
  webhook: 'https://webhook-url2
}]

would be great if this feature supports array of configs or single Hash as a config.

@phallstrom
Copy link
Owner

@Abhichede Curious to know more about your use case. No good reason other than I'm simply curious about why you need it to post to multiple workspaces...

@Abhichede
Copy link
Author

Abhichede commented May 23, 2019

@Abhichede Curious to know more about your use case. No good reason other than I'm simply curious about why you need it to post to multiple workspaces...

We have feature teams from different organisations, and the feature branches could be deployed to different environments. multiple teams needs to get the notifications on the deployment. That is the only reason we need more than one web hooks to be added in slackistrano.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants