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
56 57 58 |
# File 'lib/async/container/notify/client.rb', line 56 def error!(text, **) send(status: text, **) end |
#ready!(**message) ⇒ Object
28 29 30 |
# File 'lib/async/container/notify/client.rb', line 28 def ready!(**) send(ready: true, **) end |
#reloading!(**message) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/async/container/notify/client.rb', line 32 def reloading!(**) [:ready] = false [:reloading] = true [:status] ||= "Reloading..." send(**) end |
#restarting!(**message) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/async/container/notify/client.rb', line 40 def restarting!(**) [:ready] = false [:reloading] = true [:status] ||= "Restarting..." send(**) end |
#status!(text) ⇒ Object
52 53 54 |
# File 'lib/async/container/notify/client.rb', line 52 def status!(text) send(status: text) end |
#stopping!(**message) ⇒ Object
48 49 50 |
# File 'lib/async/container/notify/client.rb', line 48 def stopping!(**) [:stopping] = true end |