Class: Threat::Plugins::Confetti
- Inherits:
-
Danger::Plugin
- Object
- Danger::Plugin
- Threat::Plugins::Confetti
- Defined in:
- lib/threat/plugins/confetti.rb
Overview
macOS and Raycast (https://www.raycast.com/) are required to celebrate a good run with confetti
Usage:
Dangerfile
danger.import_dangerfile(gem: 'threat')
# The rest of your Dangerfile goes here...
confetti.run! unless failed?
Constant Summary collapse
- DEEPLINK =
'raycast://confetti'
Instance Method Summary collapse
Instance Method Details
#run! ⇒ Object
20 21 22 23 24 |
# File 'lib/threat/plugins/confetti.rb', line 20 def run! return unless RUBY_PLATFORM =~ /darwin/ system("open #{DEEPLINK}", err: File::NULL) end |