fluke/devops-service/app/api2/handlers/flavor.rb

21 lines
408 B
Ruby
Raw Normal View History

2015-07-23 17:04:24 +03:00
require_relative "request_handler"
2014-12-22 14:22:04 +03:00
require "providers/provider_factory"
module Devops
2015-07-16 12:54:16 +03:00
module API2_0
2014-12-22 14:22:04 +03:00
module Handler
2015-07-23 17:04:24 +03:00
class Flavor < RequestHandler
2015-07-16 12:54:16 +03:00
2015-07-30 15:37:43 +03:00
def flavors provider
2015-10-27 12:55:51 +03:00
flavors_with_account(provider, nil)
2014-12-22 14:22:04 +03:00
end
2015-07-16 12:54:16 +03:00
2015-10-27 12:55:51 +03:00
def flavors_with_account provider, account
::Provider::ProviderFactory.get(provider, account).flavors
end
2014-12-22 14:22:04 +03:00
end
end
end
end