class Bosh::Director::App

This is a work in progress.

The App is the “top of the world”; it holds all the stateful components in the system. There should be only one instance, available as a class instance to the (hopefully few) components that require it.

Attributes

blobstores[R]

Public Class Methods

instance() click to toggle source

Some places need to reference the authoritative app instance from class methods.

# File lib/bosh/director/app.rb, line 14
def instance
  @@instance
end
new(config) click to toggle source
# File lib/bosh/director/app.rb, line 21
def initialize(config)
  # You should only create one of these at a time, but when you create one
  # it becomes the authoritative official version across the whole app.
  @@instance = self

  config.configure_evil_config_singleton!

  @blobstores = Blobstores.new(config)
end