Class: Bosh::Director::Api::RouteConfiguration
- Defined in:
- lib/bosh/director/api/route_configuration.rb
Instance Method Summary collapse
- #controllers ⇒ Object
-
#initialize(config) ⇒ RouteConfiguration
constructor
A new instance of RouteConfiguration.
Constructor Details
#initialize(config) ⇒ RouteConfiguration
Returns a new instance of RouteConfiguration.
6 7 8 |
# File 'lib/bosh/director/api/route_configuration.rb', line 6 def initialize(config) @config = config end |
Instance Method Details
#controllers ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/bosh/director/api/route_configuration.rb', line 10 def controllers director_app = Bosh::Director::App.new(@config) controllers = {} controllers['/backups'] = Bosh::Director::Api::Controllers::BackupsController.new(@config) controllers['/cleanup'] = Bosh::Director::Api::Controllers::CleanupController.new(@config) controllers['/restore'] = Bosh::Director::Api::Controllers::RestoreController.new(@config) controllers['/cloud_configs'] = Bosh::Director::Api::Controllers::CloudConfigsController.new(@config) controllers['/runtime_configs'] = Bosh::Director::Api::Controllers::RuntimeConfigsController.new(@config) controllers['/deployments'] = Bosh::Director::Api::Controllers::DeploymentsController.new(@config) controllers['/disks'] = Bosh::Director::Api::Controllers::DisksController.new(@config) controllers['/info'] = Bosh::Director::Api::Controllers::InfoController.new(@config) controllers['/locks'] = Bosh::Director::Api::Controllers::LocksController.new(@config) controllers['/packages'] = Bosh::Director::Api::Controllers::PackagesController.new(@config) controllers['/releases'] = Bosh::Director::Api::Controllers::ReleasesController.new(@config) controllers['/resources'] = Bosh::Director::Api::Controllers::ResourcesController.new( @config, Bosh::Director::Api::ResourceManager.new(director_app.blobstores.blobstore) ) controllers['/resurrection'] = Bosh::Director::Api::Controllers::ResurrectionController.new(@config) controllers['/stemcells'] = Bosh::Director::Api::Controllers::StemcellsController.new(@config) controllers['/task'] = Bosh::Director::Api::Controllers::TaskController.new(@config) controllers['/tasks'] = Bosh::Director::Api::Controllers::TasksController.new(@config) controllers['/users'] = Bosh::Director::Api::Controllers::UsersController.new(@config) controllers['/events'] = Bosh::Director::Api::Controllers::EventsController.new(@config) controllers['/vms'] = Bosh::Director::Api::Controllers::VmsController.new(@config) controllers end |