Module: Proteus::ContextManagement::Helpers
- Includes:
- Helpers::PathHelpers
- Included in:
- App
- Defined in:
- lib/proteus/context_management/helpers.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
Instance Method Details
#contexts ⇒ Object
5 6 7 8 9 |
# File 'lib/proteus/context_management/helpers.rb', line 5 def contexts Dir.glob(File.join(contexts_path, "*")).collect do |context_path| Context.new(name: File.basename(context_path)) end end |