Class: SimplyGenius::Atmos::IpcActions::Notify
- Inherits:
-
Object
- Object
- SimplyGenius::Atmos::IpcActions::Notify
- Includes:
- GemLogger::LoggerSupport, UI
- Defined in:
- lib/simplygenius/atmos/ipc_actions/notify.rb
Instance Method Summary collapse
- #execute(**opts) ⇒ Object
-
#initialize ⇒ Notify
constructor
A new instance of Notify.
Methods included from UI
#agree, #ask, #choose, color_enabled, color_enabled=, #display, #error, #notify, #say, #warn
Constructor Details
#initialize ⇒ Notify
Returns a new instance of Notify.
12 13 |
# File 'lib/simplygenius/atmos/ipc_actions/notify.rb', line 12 def initialize() end |
Instance Method Details
#execute(**opts) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/simplygenius/atmos/ipc_actions/notify.rb', line 15 def execute(**opts) result = { 'stdout' => '', 'success' => '' } return result if Atmos.config["atmos.ipc.notify.disable"].to_s == "true" return notify(**opts) end |