Class: SearchKit::Events::CLI
- Inherits:
-
Thor
- Object
- Thor
- SearchKit::Events::CLI
show all
- Includes:
- Messaging
- Defined in:
- lib/search_kit/events/cli.rb,
lib/search_kit/events/cli/list.rb,
lib/search_kit/events/cli/status.rb,
lib/search_kit/events/cli/pending.rb,
lib/search_kit/events/cli/publish.rb,
lib/search_kit/events/cli/complete.rb
Defined Under Namespace
Classes: Complete, List, Pending, Publish, Status
Instance Method Summary
collapse
Methods included from Messaging
#info, #warning
Instance Method Details
#complete(id) ⇒ Object
18
19
20
|
# File 'lib/search_kit/events/cli.rb', line 18
def complete(id)
Complete.new(client, id).perform
end
|
#pending ⇒ Object
24
25
26
27
28
29
30
31
|
# File 'lib/search_kit/events/cli.rb', line 24
def pending
channel = options.fetch('channel', nil)
if channel
Pending.new(client, channel).perform
else
List.new(client).perform
end
end
|
#publish(channel) ⇒ Object
35
36
37
|
# File 'lib/search_kit/events/cli.rb', line 35
def publish(channel)
Publish.new(client, channel, options).perform
end
|
#status(id) ⇒ Object
40
41
42
|
# File 'lib/search_kit/events/cli.rb', line 40
def status(id)
Status.new(client, id).perform
end
|