Class: Proteus::Modules::Manager
- Inherits:
-
Object
- Object
- Proteus::Modules::Manager
- Includes:
- Helpers::PathHelpers, Thor::Shell
- Defined in:
- lib/proteus/modules/manager.rb
Instance Method Summary collapse
- #clean ⇒ Object
-
#initialize(context:, environment:) ⇒ Manager
constructor
A new instance of Manager.
- #render_modules ⇒ Object
Methods included from Helpers::PathHelpers
#config_dir, #config_path, #context_path, #context_temp_directory, #contexts_path, #environments_path, #module_config_path, #module_data_path, #module_hooks_path, #module_io_file, #module_path, #module_templates_path, #modules_path, #plan_file, #root_path, #state_file, #var_file
Constructor Details
#initialize(context:, environment:) ⇒ Manager
Returns a new instance of Manager.
14 15 16 17 18 |
# File 'lib/proteus/modules/manager.rb', line 14 def initialize(context:, environment:) @context = context @environment = environment initialize_modules end |
Instance Method Details
#clean ⇒ Object
24 25 26 |
# File 'lib/proteus/modules/manager.rb', line 24 def clean @modules.map(&:clean) end |
#render_modules ⇒ Object
20 21 22 |
# File 'lib/proteus/modules/manager.rb', line 20 def render_modules @modules.map(&:process) end |