Class: MotherBrain::Plugin::CleanRoom Private

Inherits:
CleanRoomBase show all
Defined in:
lib/mb/plugin.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods inherited from CleanRoomBase

dsl_attr_writer, #initialize

Methods included from Logging

add_argument_header, dev, filename, #log_exception, logger, #logger, reset, set_logger, setup

Constructor Details

This class inherits a constructor from MotherBrain::CleanRoomBase

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MotherBrain::CleanRoomBase

Instance Method Details

#cluster_bootstrap(&block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



307
308
309
310
# File 'lib/mb/plugin.rb', line 307

def cluster_bootstrap(&block)
  MB.log.warn "#{real_model}: cluster_bootstrap is now stack_order, and will be removed in motherbrain 1.0"
  stack_order(&block)
end

#command(name, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:



294
295
296
# File 'lib/mb/plugin.rb', line 294

def command(name, &block)
  real_model.add_command Command.new(name, real_model, &block)
end

#component(name, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:



299
300
301
# File 'lib/mb/plugin.rb', line 299

def component(name, &block)
  real_model.add_component Component.new(name, real_model, &block)
end

#stack_order(&block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



303
304
305
# File 'lib/mb/plugin.rb', line 303

def stack_order(&block)
  real_model.bootstrap_routine = Bootstrap::Routine.new(real_model, &block)
end