lib/cide.rb in cide-0.0.6 vs lib/cide.rb in cide-0.0.7
- old
+ new
@@ -216,10 +216,13 @@
puts 'make sure boot2docker is installed and running'
puts
puts '> brew install boot2docker'
exit 1
end
- ENV['DOCKER_HOST'] = `boot2docker socket 2>/dev/null`.strip
+
+ `boot2docker shellinit 2>/dev/null`
+ .lines
+ .grep(/export (\w+)=(.*)/) { ENV[$1] = $2.strip }
end
true
)
end