Class: RenuoBinCheck::ScriptConfig
- Inherits:
-
Object
- Object
- RenuoBinCheck::ScriptConfig
- Defined in:
- lib/renuo_bin_check/script_config.rb
Overview
:reek:TooManyInstanceVariables:
Instance Attribute Summary collapse
-
#appended_error_output ⇒ Object
Returns the value of attribute appended_error_output.
-
#appended_standard_output ⇒ Object
Returns the value of attribute appended_standard_output.
-
#script_command ⇒ Object
Returns the value of attribute script_command.
-
#script_error_output ⇒ Object
Returns the value of attribute script_error_output.
-
#script_files ⇒ Object
Returns the value of attribute script_files.
-
#script_name ⇒ Object
Returns the value of attribute script_name.
-
#script_reversed_exit ⇒ Object
Returns the value of attribute script_reversed_exit.
-
#script_standard_output ⇒ Object
Returns the value of attribute script_standard_output.
Instance Method Summary collapse
- #command(command) ⇒ Object
- #error_message(error_output) ⇒ Object
- #files(files) ⇒ Object
- #name(name) ⇒ Object
- #reversed_exit(reversed_exit) ⇒ Object
- #reversed_exit? ⇒ Boolean
- #success_message(standard_output) ⇒ Object
Instance Attribute Details
#appended_error_output ⇒ Object
Returns the value of attribute appended_error_output.
4 5 6 |
# File 'lib/renuo_bin_check/script_config.rb', line 4 def appended_error_output @appended_error_output end |
#appended_standard_output ⇒ Object
Returns the value of attribute appended_standard_output.
4 5 6 |
# File 'lib/renuo_bin_check/script_config.rb', line 4 def appended_standard_output @appended_standard_output end |
#script_command ⇒ Object
Returns the value of attribute script_command.
4 5 6 |
# File 'lib/renuo_bin_check/script_config.rb', line 4 def script_command @script_command end |
#script_error_output ⇒ Object
Returns the value of attribute script_error_output.
4 5 6 |
# File 'lib/renuo_bin_check/script_config.rb', line 4 def script_error_output @script_error_output end |
#script_files ⇒ Object
Returns the value of attribute script_files.
4 5 6 |
# File 'lib/renuo_bin_check/script_config.rb', line 4 def script_files @script_files end |
#script_name ⇒ Object
Returns the value of attribute script_name.
4 5 6 |
# File 'lib/renuo_bin_check/script_config.rb', line 4 def script_name @script_name end |
#script_reversed_exit ⇒ Object
Returns the value of attribute script_reversed_exit.
4 5 6 |
# File 'lib/renuo_bin_check/script_config.rb', line 4 def script_reversed_exit @script_reversed_exit end |
#script_standard_output ⇒ Object
Returns the value of attribute script_standard_output.
4 5 6 |
# File 'lib/renuo_bin_check/script_config.rb', line 4 def script_standard_output @script_standard_output end |
Instance Method Details
#command(command) ⇒ Object
7 8 9 |
# File 'lib/renuo_bin_check/script_config.rb', line 7 def command(command) @script_command = command end |
#error_message(error_output) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/renuo_bin_check/script_config.rb', line 27 def (error_output) if error_output[0] == '+' @appended_error_output = error_output.sub('+', '') else @script_error_output = error_output end end |
#files(files) ⇒ Object
11 12 13 |
# File 'lib/renuo_bin_check/script_config.rb', line 11 def files(files) @script_files = files end |
#name(name) ⇒ Object
15 16 17 |
# File 'lib/renuo_bin_check/script_config.rb', line 15 def name(name) @script_name = name end |
#reversed_exit(reversed_exit) ⇒ Object
35 36 37 |
# File 'lib/renuo_bin_check/script_config.rb', line 35 def reversed_exit(reversed_exit) @script_reversed_exit = reversed_exit end |
#reversed_exit? ⇒ Boolean
43 44 45 |
# File 'lib/renuo_bin_check/script_config.rb', line 43 def reversed_exit? @script_reversed_exit end |
#success_message(standard_output) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/renuo_bin_check/script_config.rb', line 19 def (standard_output) if standard_output[0] == '+' @appended_standard_output = standard_output.sub('+', '') else @script_standard_output = standard_output end end |