Sha256: 27202e15a5b40e035e88d826a4e93486f447e608d9a64e9e846264a661a9f337
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 Bytes
Contents
begin ### #Return File_name:File_path def get_files(folder) ### Pre def. variables begin files = Hash.new end ### Validation begin ### Check that does the folder is absolute or not if folder != File.expand_path(folder) folder = File.expand_path(folder) end end ### Get Files list begin Dir[File.join(folder,'**','*')].uniq.each do |file_path| if !File.directory? file_path files[file_path.split(File::SEPARATOR).last.to_sym]= file_path end end end ### Return file_name:folder return files end ### Offline repo activate begin $LOAD_PATH << (File.expand_path(File.join(File.dirname(__FILE__),"..","..","..","module","gems"))) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clone-1.0.0.beta2 | lib/clone/helpers/require.rb |
clone-1.0.0.beta | lib/clone/helpers/require.rb |