Class: SimplyGenius::Atmos::IpcActions::Notify

Inherits:
Object
  • Object
show all
Includes:
GemLogger::LoggerSupport, UI
Defined in:
lib/simplygenius/atmos/ipc_actions/notify.rb

Instance Method Summary collapse

Methods included from UI

#agree, #ask, #choose, color_enabled, color_enabled=, #display, #error, #notify, #say, #warn

Constructor Details

#initializeNotify

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