Method: Brief::Apps.search_paths

Defined in:
lib/brief/apps.rb

.search_pathsObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/brief/apps.rb', line 11

def self.search_paths
  paths = [default_path]

  paths << home_apps_path if home_apps_path.exist?

  if custom_path = ENV['BRIEF_APPS_PATH']
    custom_path = custom_path.to_s.to_pathname
    paths << custom_path if (custom_path.exist? rescue nil)
  end

  paths
end