Class: MotherBrain::Gear::Service::CleanRoom Private

Inherits:
CleanRoomBase show all
Defined in:
lib/mb/gears/service.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

#action(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:

  • name (String)


138
139
140
# File 'lib/mb/gears/service.rb', line 138

def action(name, &block)
  real_model.add_action Service::Action.new(name, real_model.component, &block)
end

#service_attribute(attribute) ⇒ 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.



150
151
152
# File 'lib/mb/gears/service.rb', line 150

def service_attribute(attribute)
  real_model.set_service_attribute([attribute].flatten)
end

#service_group(group) ⇒ 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.



142
143
144
# File 'lib/mb/gears/service.rb', line 142

def service_group(group)
  real_model.set_service_group(group)
end

#service_recipe(recipe) ⇒ 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.



146
147
148
# File 'lib/mb/gears/service.rb', line 146

def service_recipe(recipe)
  real_model.set_service_recipe([recipe].flatten)
end