Class: MotherBrain::Group::CleanRoom Private

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

#chef_attribute(attr_key, attr_value) ⇒ 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:

  • attr_key (#to_s)
  • attr_value (Object)


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

def chef_attribute(attr_key, attr_value)
  real_model.add_chef_attribute(attr_key, attr_value)
end

#recipe(value) ⇒ Set<String>

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:

  • value (#to_s)

Returns:

  • (Set<String>)


125
126
127
# File 'lib/mb/group.rb', line 125

def recipe(value)
  real_model.add_recipe(value.to_s)
end

#role(value) ⇒ Set<String>

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:

  • value (#to_s)

Returns:

  • (Set<String>)


132
133
134
# File 'lib/mb/group.rb', line 132

def role(value)
  real_model.add_role(value.to_s)
end