class RenuoBinCheck::ScriptConfig

:reek: TooManyInstanceVariables:

Attributes

appended_error_output[RW]
appended_standard_output[RW]
script_command[RW]
script_error_output[RW]
script_files[RW]
script_name[RW]
script_reversed_exit[RW]
script_standard_output[RW]

Public Instance Methods

command(command) click to toggle source
# File lib/renuo_bin_check/script_config.rb, line 7
def command(command)
  @script_command = command
end
error_message(error_output) click to toggle source
# File lib/renuo_bin_check/script_config.rb, line 27
def error_message(error_output)
  if error_output[0] == '+'
    @appended_error_output = error_output.sub('+', '')
  else
    @script_error_output = error_output
  end
end
files(files) click to toggle source
# File lib/renuo_bin_check/script_config.rb, line 11
def files(files)
  @script_files = files
end
name(name) click to toggle source
# File lib/renuo_bin_check/script_config.rb, line 15
def name(name)
  @script_name = name
end
reversed_exit(reversed_exit) click to toggle source
# File lib/renuo_bin_check/script_config.rb, line 35
def reversed_exit(reversed_exit)
  @script_reversed_exit = reversed_exit
end
reversed_exit?() click to toggle source
# File lib/renuo_bin_check/script_config.rb, line 43
def reversed_exit?
  @script_reversed_exit
end
success_message(standard_output) click to toggle source
# File lib/renuo_bin_check/script_config.rb, line 19
def success_message(standard_output)
  if standard_output[0] == '+'
    @appended_standard_output = standard_output.sub('+', '')
  else
    @script_standard_output = standard_output
  end
end