Class: Async::Container::Notify::Client
- Inherits:
-
Object
- Object
- Async::Container::Notify::Client
- Defined in:
- lib/async/container/notify/client.rb
Instance Method Summary collapse
- #error!(text, **message) ⇒ Object
- #ready!(**message) ⇒ Object
- #reloading!(**message) ⇒ Object
- #restarting!(**message) ⇒ Object
- #status!(text) ⇒ Object
- #stopping!(**message) ⇒ Object
Instance Method Details
#error!(text, **message) ⇒ Object
55 56 57 |
# File 'lib/async/container/notify/client.rb', line 55 def error!(text, **) send(status: text, **) end |
#ready!(**message) ⇒ Object
27 28 29 |
# File 'lib/async/container/notify/client.rb', line 27 def ready!(**) send(ready: true, **) end |
#reloading!(**message) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/async/container/notify/client.rb', line 31 def reloading!(**) [:ready] = false [:reloading] = true [:status] ||= "Reloading..." send(**) end |
#restarting!(**message) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/async/container/notify/client.rb', line 39 def restarting!(**) [:ready] = false [:reloading] = true [:status] ||= "Restarting..." send(**) end |
#status!(text) ⇒ Object
51 52 53 |
# File 'lib/async/container/notify/client.rb', line 51 def status!(text) send(status: text) end |
#stopping!(**message) ⇒ Object
47 48 49 |
# File 'lib/async/container/notify/client.rb', line 47 def stopping!(**) [:stopping] = true end |