Class: RogIQ::Remote::Content
- Inherits:
-
CommandBase
- Object
- Thor
- CommandBase
- RogIQ::Remote::Content
- Defined in:
- lib/rogiq/remote/content.rb
Instance Method Summary collapse
- #failed(identifier) ⇒ Object
- #heal(identifier) ⇒ Object
- #publish_queue ⇒ Object
- #status(identifier) ⇒ Object
Instance Method Details
#failed(identifier) ⇒ Object
32 33 34 |
# File 'lib/rogiq/remote/content.rb', line 32 def failed(identifier) emit(api.get("/api/v1/cli/content/failed", { identifier: identifier, limit: [:limit] })) end |
#heal(identifier) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/rogiq/remote/content.rb', line 15 def heal(identifier) unless [:yes] exit 1 unless yes?("Enqueue DataHealingOrchestratorJob for #{identifier}?") end emit(api.post("/api/v1/cli/content/heal", { identifier: identifier, confirm: true })) end |
#publish_queue ⇒ Object
26 27 28 |
# File 'lib/rogiq/remote/content.rb', line 26 def publish_queue emit(api.get("/api/v1/cli/content/publish_queue", { limit: [:limit] })) end |
#status(identifier) ⇒ Object
9 10 11 |
# File 'lib/rogiq/remote/content.rb', line 9 def status(identifier) emit(api.get("/api/v1/cli/content/status", { identifier: identifier })) end |