Class: RenuoBinCheck::ScriptConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo_bin_check/script_config.rb

Overview

:reek:TooManyInstanceVariables:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appended_error_outputObject

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_outputObject

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_commandObject

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_outputObject

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_filesObject

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_nameObject

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_exitObject

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_outputObject

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_message(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

Returns:

  • (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 success_message(standard_output)
  if standard_output[0] == '+'
    @appended_standard_output = standard_output.sub('+', '')
  else
    @script_standard_output = standard_output
  end
end