Module: Legion::Extensions::ElasticAppSearch::Runners::Engines
- Includes:
- Helpers::Client, Helpers::Lex
- Defined in:
- lib/legion/extensions/elastic_app_search/runners/engines.rb
Instance Method Summary collapse
- #add_meta_source(engine:, sources: [], **opts) ⇒ Object
- #create(engine:, **opts) ⇒ Object
- #create_meta(engine:, sources: [], **opts) ⇒ Object
- #delete_meta_source(engine:, sources: [], **opts) ⇒ Object
- #destroy(engine:, **opts) ⇒ Object
- #get(engine:, **opts) ⇒ Object
- #list(**opts) ⇒ Object
Methods included from Helpers::Client
Instance Method Details
#add_meta_source(engine:, sources: [], **opts) ⇒ Object
28 29 30 |
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 28 def (engine:, sources: [], **opts) client(opts).(engine, sources) end |
#create(engine:, **opts) ⇒ Object
20 21 22 |
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 20 def create(engine:, **opts) client(opts).create_engine(engine) end |
#create_meta(engine:, sources: [], **opts) ⇒ Object
24 25 26 |
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 24 def (engine:, sources: [], **opts) client(opts).(engine, sources) end |
#delete_meta_source(engine:, sources: [], **opts) ⇒ Object
32 33 34 |
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 32 def (engine:, sources: [], **opts) client(opts).(engine, sources) end |
#destroy(engine:, **opts) ⇒ Object
16 17 18 |
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 16 def destroy(engine:, **opts) client(opts).destroy_engine(engine) end |
#get(engine:, **opts) ⇒ Object
12 13 14 |
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 12 def get(engine:, **opts) client(opts).get_engine(engine) end |
#list(**opts) ⇒ Object
8 9 10 |
# File 'lib/legion/extensions/elastic_app_search/runners/engines.rb', line 8 def list(**opts) client(opts).list_engines end |