Method: Spider::App::ClassMethods#installed_version

Defined in:
lib/spiderfw/app.rb

#installed_versionGem::Version

Returns the currently installed version of an app

Returns:

  • (Gem::Version)


307
308
309
310
311
# File 'lib/spiderfw/app.rb', line 307

def installed_version
    FileUtils.mkpath(File.dirname(installed_version_path))
    return unless File.exist?(installed_version_path)
    return Gem::Version.new(IO.read(installed_version_path))
end