lib/rim/module_helper.rb in esr-rim-1.2.2 vs lib/rim/module_helper.rb in esr-rim-1.3.0

- old
+ new

@@ -21,11 +21,10 @@ protected # fetch module +mod+ into the .rim folder # works both for initial fetch and updates def fetch_module - git_path = module_git_path(@remote_path) FileUtils.mkdir_p git_path RIM::git_session(git_path) do |s| if !File.exist?(git_path + "/config") s.execute("git clone --mirror #{@remote_url} #{git_path}") do |out, e| raise RimException.new("Remote repository '#{@remote_url}' of module '#{@module_info.local_path}' not found.") if e @@ -45,9 +44,13 @@ FileUtils.rm(f) end end FileHelper.remove_empty_dirs(local_path) FileUtils.mkdir_p(local_path) + end + + def git_path + module_git_path(@remote_path) end end end