Exception: SiteFuel::External::VersionNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sitefuel/external/AbstractExternalProgram.rb

Overview

raised when the program appears to be found but it’s version is not compatible

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(program_name, compatible_version, actual_version) ⇒ VersionNotFound

Returns a new instance of VersionNotFound.



36
37
38
39
40
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 36

def initialize(program_name, compatible_version, actual_version)
  @program_name = program_name
  @compatible_version = compatible_version
  @actual_version = actual_version
end

Instance Attribute Details

#actual_versionObject (readonly)

Returns the value of attribute actual_version.



35
36
37
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 35

def actual_version
  @actual_version
end

#compatible_versionObject (readonly)

Returns the value of attribute compatible_version.



35
36
37
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 35

def compatible_version
  @compatible_version
end

#program_nameObject (readonly)

Returns the value of attribute program_name.



35
36
37
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 35

def program_name
  @program_name
end

Instance Method Details

#to_sObject



42
43
44
45
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 42

def to_s
  'Compatible versions of program %s are %s. Found version %s' %
  [program_name, compatible_version, actual_version]
end