Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Install bundler config to ~/.bundle/config so we can provide it custo…

…m UAs
  • Loading branch information...
commit 85afa6df8ff4d51b0805398bba6eb122765d9201 1 parent d5054d8
@michaelklishin michaelklishin authored
View
22 ci_environment/rvm/recipes/default.rb
@@ -74,3 +74,25 @@
source "dot_rvmrc.sh.erb"
end
+
+
+bundler_settings = File.join(node.travis_build_environment.home, ".bundle", "config")
+template bundler_settings do
+ owner node.travis_build_environment.user
+ group node.travis_build_environment.group
+
+ mode 0644
+
+ source "bundler_config.yml.erb"
+ variables Hash[:suffix => node.travis_build_environment.installation_suffix]
+ action :nothing
+end
+
+
+directory(File.join(node.travis_build_environment.home, ".bundle")) do
+ owner node.travis_build_environment.user
+ group node.travis_build_environment.group
+
+ action :create
+ notifies :create, resources(:template => bundler_settings)
+end
View
2  ci_environment/rvm/templates/default/bundler_config.yml.erb
@@ -0,0 +1,2 @@
+api:
+ user_agent_extra: "travis-ci.<%= suffix %>/1.0.0"
View
2  ci_environment/travis_build_environment/attributes/default.rb
@@ -7,6 +7,8 @@
:hosts => Hash.new,
:builds_volume_size => "350m",
:use_tmpfs_for_builds => true,
+ # "org" or "com"
+ :installation_suffix => "org",
:apt => {
# in seconds
Please sign in to comment.
Something went wrong with that request. Please try again.