Class: RogIQ::Remote::Content

Inherits:
CommandBase show all
Defined in:
lib/rogiq/remote/content.rb

Instance Method Summary collapse

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: options[:limit] }))
end

#heal(identifier) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/rogiq/remote/content.rb', line 15

def heal(identifier)
  unless options[:yes]
    exit 1 unless yes?("Enqueue DataHealingOrchestratorJob for #{identifier}?")
  end

  emit(api.post("/api/v1/cli/content/heal", { identifier: identifier, confirm: true }))
end

#publish_queueObject



26
27
28
# File 'lib/rogiq/remote/content.rb', line 26

def publish_queue
  emit(api.get("/api/v1/cli/content/publish_queue", { limit: options[: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