Class: Biosphere::CLI::UpdateManager

Inherits:
Object
  • Object
show all
Defined in:
lib/biosphere/cli/updatemanager.rb

Instance Method Summary collapse

Instance Method Details

#check_for_update(version = ::Biosphere::Version) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/biosphere/cli/updatemanager.rb', line 12

def check_for_update(version = ::Biosphere::Version)
    url = URI('https://rubygems.org/api/v1/versions/biosphere/latest.json')

    response = get_response_with_redirect(url)
    pp response

    return info
end