Exception: SiteFuel::External::VersionNotFound
- 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
-
#actual_version ⇒ Object
readonly
Returns the value of attribute actual_version.
-
#compatible_version ⇒ Object
readonly
Returns the value of attribute compatible_version.
-
#program_name ⇒ Object
readonly
Returns the value of attribute program_name.
Instance Method Summary collapse
-
#initialize(program_name, compatible_version, actual_version) ⇒ VersionNotFound
constructor
A new instance of VersionNotFound.
- #to_s ⇒ Object
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_version ⇒ Object (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_version ⇒ Object (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_name ⇒ Object (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_s ⇒ Object
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 |