djoos-cookbooks / composer

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

COMPOSER_HOME should end with ".composer" dir #39

Closed fonsecas72 closed 9 years ago

fonsecas72 commented 9 years ago

For the "global config thing" to work we have to make sure that we add '.composer' to the home_dir attribute.

But, you could do that on recipe side. Something like:

  def self.home_dir(node)
    node['composer']['home_dir']+'/.composer' || install_dir(node)
  end

Is how it is done by other cookbooks. See vagrant-cookbook But I don't mind if you just update documentation for others to be aware. ;)

djoos commented 9 years ago

Hi @hugofonseca,

thanks for getting in touch! I've added an extra heads up in the README...

We could handle the tapping on of ".composer" (or "Composer" on Windows), see composer docs, in the library.

Looking forward to receiving feedback from people using the attribute and we can tweak the library from there... What do you think?

Hope this helps!

Kind regards, David

fonsecas72 commented 9 years ago

To me that's good enough. I like freedom :)

djoos commented 9 years ago

;-)

Perfect - thanks for your feedback!