class MavenRemote

Public Class Methods

new(url) click to toggle source
# File lib/jlauncher/repos.rb, line 78
def initialize(url)
    @url = url
end

Public Instance Methods

get(coordinates) click to toggle source
# File lib/jlauncher/repos.rb, line 82
def get(coordinates)
    uri = URI(@url + "/" + coordinates.relative_url)

    response = HTTParty.get(uri)

    if response.code != 200
        raise "Error getting #{uri} response code #{response.code}"
    end

    response.body
end