21 lines
408 B
Ruby
21 lines
408 B
Ruby
require_relative "request_handler"
|
|
require "providers/provider_factory"
|
|
|
|
module Devops
|
|
module API2_0
|
|
module Handler
|
|
class Flavor < RequestHandler
|
|
|
|
def flavors provider
|
|
flavors_with_account(provider, nil)
|
|
end
|
|
|
|
def flavors_with_account provider, account
|
|
::Provider::ProviderFactory.get(provider, account).flavors
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|