lib/dockdev/context/rubygems.rb in dockdev-0.3.3 vs lib/dockdev/context/rubygems.rb in dockdev-0.3.4

- old
+ new

@@ -24,11 +24,12 @@ def process_mount(mount_hash, dir_inside_docker = "/opt") if not mount_hash.nil? and mount_hash.is_a?(Hash) script = ["#!/bin/bash"] - script << "alias be > /dev/null 2>&1 && echo 'alias be=bundle exec' >> ~/.bashrc" + #script << "alias be > /dev/null 2>&1 && echo 'alias be=bundle exec' >> ~/.bashrc" + script << "echo 'alias be=bundle exec' >> ~/.bashrc" # # looking at source code # https://github.com/rubygems/rubygems/blob/master/bundler/lib/bundler/shared_helpers.rb#L246 # seems this is the way to set root for Bundler @@ -44,10 +45,10 @@ #res[d.name] = src.path.expand_path.to_s end end end - scriptOut = File.join(@path,"to_be_executed_inside_docker.sh") + scriptOut = File.join(@path,"to-be-executed-once-inside-docker.sh") File.open(scriptOut,"w") do |f| f.write script.join("\n") end `chmod +x #{scriptOut}`