Class: Proteus::Modules::Manager

Inherits:
Object
  • Object
show all
Includes:
Helpers::PathHelpers, Thor::Shell
Defined in:
lib/proteus/modules/manager.rb

Instance Method Summary collapse

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

#cleanObject



24
25
26
# File 'lib/proteus/modules/manager.rb', line 24

def clean
  @modules.map(&:clean)
end

#render_modulesObject



20
21
22
# File 'lib/proteus/modules/manager.rb', line 20

def render_modules
  @modules.map(&:process)
end