djoos-cookbooks / composer

Repository for composer cookbook
http://community.opscode.com/cookbooks/composer
MIT License
27 stars 38 forks source link

Setup config per user use the same global COMPOSER_HOME #47

Closed Maks3w closed 9 years ago

Maks3w commented 9 years ago

Actual implementation of COMPOSER_HOME is not per user aware.

Create composer_home is not synced with env var and is not per user aware.

  configs.each_pair do |user, user_configs|
  directory "/home/#{user}/.composer" do
      owner user
      group user
      mode 0755
      action :create
    end

  # but later

  environment 'COMPOSER_HOME' => Composer.home_dir(node)

So Composer.home_dir(node) is global and does not match with /home/#{user}/.composer

djoos commented 9 years ago

Fixed in @john-coleman-w's PR!