lib/dockdev/context/rubygems.rb in dockdev-0.3.1 vs lib/dockdev/context/rubygems.rb in dockdev-0.3.2

- old
+ new

@@ -19,11 +19,11 @@ def find_gemfile Dir.glob(File.join(@path,"Gemfile")) end - def process_mount(mount_hash) + def process_mount(mount_hash, dir_inside_docker = "/opt") if not mount_hash.nil? and mount_hash.is_a?(Hash) # # looking at source code @@ -33,10 +33,10 @@ ENV['BUNDLE_GEMFILE'] = find_gemfile.first Bundler.load.dependencies.each do |d| if not d.source.nil? src = d.source if src.path.to_s != "." - mount_hash[d.name] = src.path.expand_path.to_s + mount_hash[src.path.expand_path.to_s] = File.join(dir_inside_docker, d.name) #res[d.name] = src.path.expand_path.to_s end end end