Class: SolrWrapper::Runner
- Inherits:
-
Object
- Object
- SolrWrapper::Runner
- Defined in:
- lib/solr_wrapper/runner.rb
Overview
An abstract class for running commands in the shell
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(cmd, options, config) ⇒ Runner
constructor
A new instance of Runner.
- #silence_output? ⇒ Boolean
Constructor Details
#initialize(cmd, options, config) ⇒ Runner
Returns a new instance of Runner.
4 5 6 7 8 9 |
# File 'lib/solr_wrapper/runner.rb', line 4 def initialize(cmd, , config) @cmd = cmd @silence_output = !.delete(:output) @options = @config = config end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
11 12 13 |
# File 'lib/solr_wrapper/runner.rb', line 11 def cmd @cmd end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
11 12 13 |
# File 'lib/solr_wrapper/runner.rb', line 11 def config @config end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/solr_wrapper/runner.rb', line 11 def @options end |
Instance Method Details
#silence_output? ⇒ Boolean
13 14 15 |
# File 'lib/solr_wrapper/runner.rb', line 13 def silence_output? @silence_output end |