Method: Souls::Utils#get_mother_path

Defined in:
lib/souls/utils/index.rb

#get_mother_pathObject



3
4
5
6
7
8
# File 'lib/souls/utils/index.rb', line 3

def get_mother_path
  current_dir = Dir.pwd
  file_array = current_dir.split("/")
  mother_dir_num = file_array.rindex("apps")
  mother_dir_num ? file_array.each_slice(mother_dir_num).to_a[0].join("/") : current_dir
end