Method: Ruber::PluginLike#update_project

Defined in:
lib/ruber/plugin_like.rb

#update_project(prj) ⇒ nil

Ensures that all the project options, widgets and extensions which are provided by the plugin and match the project have been added to it and that none which doesn’t match it have been added

This method is called when one of the characteristics of the project the rules take into account change, so that the plugin always add to the project all the pertinent content

Parameters:

Returns:

  • (nil)

394
395
396
397
398
399
400
401
# File 'lib/ruber/plugin_like.rb', line 394

def update_project prj
  remove_options_from_project prj, false
  add_options_to_project prj, false
  remove_widgets_from_project prj
  add_widgets_to_project prj
  remove_extensions_from_project prj, false
  add_extensions_to_project prj, false
end