Module: MotherBrain::Mixin::Services::ClassMethods

Defined in:
lib/mb/mixin/services.rb

Instance Method Summary collapse

Instance Method Details

#bootstrap_managerCelluloid::Actor(Bootstrap::Manager) Also known as: bootstrapper

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the bootstrap manager has not been started



21
22
23
# File 'lib/mb/mixin/services.rb', line 21

def bootstrap_manager
  Bootstrap::Manager.instance
end

#command_invokerCelluloid::Actor(CommandInvoker)

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if command invoker has not been started



29
30
31
# File 'lib/mb/mixin/services.rb', line 29

def command_invoker
  CommandInvoker.instance
end

#config_managerCelluloid::Actor(ConfigManager)

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the config manager has not been started



36
37
38
# File 'lib/mb/mixin/services.rb', line 36

def config_manager
  ConfigManager.instance
end

#environment_managerCelluloid::Actor(EnvironmentManager)

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the environment manager has not been started



43
44
45
# File 'lib/mb/mixin/services.rb', line 43

def environment_manager
  EnvironmentManager.instance
end

#job_managerCelluloid::Actor(JobManager)

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the job manager has not been started



50
51
52
# File 'lib/mb/mixin/services.rb', line 50

def job_manager
  JobManager.instance
end

#lock_managerCelluloid::Actor(LockManager)

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the lock manager has not been started



57
58
59
# File 'lib/mb/mixin/services.rb', line 57

def lock_manager
  LockManager.instance
end

#node_querierCelluloid::Actor(NodeQuerier)

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the node querier has not been started



64
65
66
# File 'lib/mb/mixin/services.rb', line 64

def node_querier
  NodeQuerier.instance
end

#plugin_managerCelluloid::Actor(PluginManager)

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the plugin manager has not been started



71
72
73
# File 'lib/mb/mixin/services.rb', line 71

def plugin_manager
  PluginManager.instance
end

#provisioner_managerCelluloid::Actor(Provisioner::Manager) Also known as: provisioner

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the provisioner manager has not been started



78
79
80
# File 'lib/mb/mixin/services.rb', line 78

def provisioner_manager
  Provisioner::Manager.instance
end

#ridleyCelluloid::Actor(Ridley::Connection) Also known as: chef_connection

Returns:

  • (Celluloid::Actor(Ridley::Connection))

Raises:

  • (Celluloid::DeadActorError)

    if Ridley has not been started



86
87
88
# File 'lib/mb/mixin/services.rb', line 86

def ridley
  MB::Application[:ridley] or raise Celluloid::DeadActorError, "Ridley not running"
end

#upgrade_managerCelluloid::Actor(Upgrade::Manager)

Returns:

Raises:

  • (Celluloid::DeadActorError)

    if the upgrade manager has not been started



94
95
96
# File 'lib/mb/mixin/services.rb', line 94

def upgrade_manager
  Upgrade::Manager.instance
end