foreman/lib/proxy_api/features.rb @ 9d43fc71
c512a477 | Ohad Levy | module ProxyAPI
|
|
c140d297 | Daniel Lobato | class Features < ProxyAPI::Resource
|
|
5f029ed6 | Daniel Lobato | def initialize(args)
|
|
9d43fc71 | Michael Moll | @url = args[:url] + "/features"
|
|
c512a477 | Ohad Levy | super args
|
|
end
|
|||
def features
|
|||
parse get
|
|||
c83e29ac | Lukas Zapletal | rescue => e
|
|
raise ProxyException.new(url, e, N_("Unable to detect features"))
|
|||
c512a477 | Ohad Levy | end
|
|
end
|
|||
end
|