Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Correctly set owner and group for Composer files

The attributes that were used previously are not set, gotta use those from
travis_build_environment
  • Loading branch information...
commit 78cc1e6b4c63a60978ce688e9f879bc5c5e48e66 1 parent 59a019f
Michael Klishin authored August 04, 2012
11  ci_environment/composer/recipes/default.rb
... ...
@@ -1,20 +1,19 @@
1 1
 include_recipe "php::multi"
2 2
 
3  
-phpenv_path = "#{node.travis_build_environment.home}/.phpenv"
  3
+phpenv_path = File.join(node.travis_build_environment.home, ".phpenv")
4 4
 
5 5
 node[:php][:multi][:versions].each do |php_version|
6  
-
7 6
   bin_path = "#{phpenv_path}/versions/#{php_version}/bin"
8 7
   remote_file "#{bin_path}/composer.phar" do
9 8
     source "http://getcomposer.org/composer.phar"
10  
-    owner  node[:phpbuild][:user]
11  
-    group  node[:phpbuild][:group]
  9
+    owner  node.travis_build_environment.user
  10
+    group  node.travis_build_environment.group
12 11
     mode   "0644"
13 12
   end
14 13
 
15 14
   template "#{bin_path}/composer" do
16  
-    owner  node[:phpbuild][:user]
17  
-    group  node[:phpbuild][:group]
  15
+    owner  node.travis_build_environment.user
  16
+    group  node.travis_build_environment.group
18 17
     mode   "0755"
19 18
     source "composer.erb"
20 19
     variables(:phpbin_path => bin_path)

0 notes on commit 78cc1e6

Please sign in to comment.
Something went wrong with that request. Please try again.