/homebrew-sceptrefun

Notification sounds for sceptre jobs

Primary LanguageShell

Sceptrefun Project

This project is a wrapper extension to Cloudreach's sceptre tool. It plays different sounds when sceptre operations start, run, fail and when it is complete.

Dependencies

You should have the following components to be set up:

  • python
  • sceptre

How to install

Install using Homebrew:

brew install esn89/sceptrefun/sceptrefun

How to use

Run it the same way you would run sceptre:

sceptrefun $action $env $stack

By default it uses Warcraft sounds, but you can override this behaviour using SCEPTRE_THEME environment variable, just run one of the following commands:

  • export SCEPTRE_THEME="terran" - for Starcraft Terran sounds
  • export SCEPTRE_THEME="protoss" - for Starcraft Protoss sounds
  • export SCEPTRE_THEME="zerg" - for Starcraft Zerg sounds

Command with override could look like this:

export SCEPTRE_THEME="terran"
sceptrefun launch-stack dev vpc

If you want to add additional sound themes, just create a new folder in /usr/local/Cellar/sceptrefun/{version}/assets and add required .mp3 files.

If you trust this project and want to stop typing sceptrefun everytime, put this in your ~/.zshrc or ~/.bashrc:

alias `sceptre=/usr/local/bin/sceptrefun`

Roadmap

  • Record more sounds using co-workers' voices
  • Support more commands
  • Refactor sceptre command handling
  • Convert -t parameter to environment variable

More stuff

Blizzard said I could use their stuff: image