2014-12-22 14:22:04 +03:00
|
|
|
require "providers/provider_factory"
|
2015-07-30 15:37:43 +03:00
|
|
|
require_relative "request_handler"
|
2014-12-22 14:22:04 +03:00
|
|
|
|
|
|
|
|
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-30 15:37:43 +03:00
|
|
|
class Group < RequestHandler
|
2015-07-16 12:54:16 +03:00
|
|
|
|
2015-07-30 15:37:43 +03:00
|
|
|
# TODO: vpc support for ec2
|
|
|
|
|
def groups provider
|
2015-10-27 12:55:51 +03:00
|
|
|
groups_with_account(provider, nil)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def groups_with_account provider, account
|
|
|
|
|
::Provider::ProviderFactory.get(provider, account).groups()#params
|
2014-12-22 14:22:04 +03:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|