Class: Proctor::Config::AppFiles
- Inherits:
-
Object
- Object
- Proctor::Config::AppFiles
- Defined in:
- lib/proctor/config/app_files.rb
Instance Method Summary collapse
- #all ⇒ Object
- #find_by_handle(handle) ⇒ Object
-
#initialize(params) ⇒ AppFiles
constructor
A new instance of AppFiles.
- #merged_data ⇒ Object
- #path_list(params) ⇒ Object
Constructor Details
Instance Method Details
#all ⇒ Object
12 13 14 |
# File 'lib/proctor/config/app_files.rb', line 12 def all @all.sort {|a,b| a.name <=> b.name} end |
#find_by_handle(handle) ⇒ Object
24 25 26 |
# File 'lib/proctor/config/app_files.rb', line 24 def find_by_handle(handle) @all.find {|app_file| app_file.handle == handle} end |
#merged_data ⇒ Object
16 17 18 |
# File 'lib/proctor/config/app_files.rb', line 16 def merged_data @all.reduce({}) { |a,v| a.deep_merge(v.data) } end |
#path_list(params) ⇒ Object
20 21 22 |
# File 'lib/proctor/config/app_files.rb', line 20 def path_list(params) gem_app_path + cwd_app_path + commandline_app_path(params) end |