Class: SolrMakr::Commands::Execute Private
- Inherits:
-
ActiveInteraction::Base
- Object
- ActiveInteraction::Base
- SolrMakr::Commands::Execute
- Includes:
- BufferInteraction, Utility
- Defined in:
- lib/solr_makr/commands/execute.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Execute an application command based on its configuration.
Constant Summary
Constants included from Utility
Instance Attribute Summary
Attributes included from BufferInteraction
Instance Method Summary collapse
- #execute ⇒ SolrMakr::Commands::Buffer private
- #raw_options ⇒ Hash private
-
#set_default_options! ⇒ void
private
Inherit default options for the action if any.
-
#set_global_options! ⇒ void
private
Set global options for the environment.
- #validate_options! ⇒ void private
Methods included from Utility
default_table, default_table_options!, hash_to_table, looks_like_a_valid_configset?, path_to_configset
Methods included from BufferInteraction
#build_buffer, #compose_buffer
Instance Method Details
#execute ⇒ SolrMakr::Commands::Buffer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/solr_makr/commands/execute.rb', line 17 def execute unless errors.any? compose_buffer action.interaction_klass, ** end return buffer end |
#raw_options ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
62 63 64 |
# File 'lib/solr_makr/commands/execute.rb', line 62 def .__hash__.symbolize_keys end |
#set_default_options! ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Inherit default options for the action if any.
47 48 49 |
# File 'lib/solr_makr/commands/execute.rb', line 47 def action.(command_args, ) end |
#set_global_options! ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Set global options for the environment.
40 41 42 |
# File 'lib/solr_makr/commands/execute.rb', line 40 def compose SolrMakr::SetGlobalOptions, end |
#validate_options! ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
52 53 54 55 56 57 58 |
# File 'lib/solr_makr/commands/execute.rb', line 52 def action.option_mapping.each do |option| unless option.valid_in?() errors.add :base, "Missing required argument: #{option.long_name}" end end end |