Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Cjules::Notifier
Constants
NOTIFY_STATES = ["
COMPLETED
", "
FAILED
", "
AWAITING_USER_FEEDBACK
"] of ::
String
TARGETS = ["desktop", "slack", "discord"] of ::
String
WEBHOOK_TIMEOUT = 10.seconds
Instance methods
desktop_command
(title :
String
, body :
String
, darwin :
Bool
= {% if flag?(:darwin) %}true{% else %}false{% end %}) :
Tuple
(
String
,
Array
(
String
))
Source
format_message
(sess :
Models::Session
, state :
String
) :
Tuple
(
String
,
String
)
Source
notify
(targets :
Array
(
String
), sess :
Models::Session
, state :
String
, cfg :
Config
) :
Nil
Source
notify_desktop
(title :
String
, body :
String
) :
Nil
Source
notify_webhook
(name :
String
, url :
String
, payload :
String
) :
Nil
Source
parse_targets
(raw :
Array
(
String
)) :
Array
(
String
)
Source
should_notify?
(state :
String
|
Nil
) :
Bool
Source
valid_webhook_url?
(url :
String
|
Nil
) :
Bool
Source
validate_config!
(targets :
Array
(
String
), cfg :
Config
) :
Nil
Source