22 lines
435 B
Ruby
22 lines
435 B
Ruby
require "providers/provider_factory"
|
|
require_relative "request_handler"
|
|
|
|
module Devops
|
|
module API2_0
|
|
module Handler
|
|
class Network < RequestHandler
|
|
|
|
def networks provider
|
|
networks_with_account provider, nil
|
|
end
|
|
|
|
def networks_with_account provider, account
|
|
p = ::Provider::ProviderFactory.get(provider, account)
|
|
p.networks_detail
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|