krzysztofzablocki / crafter

Crafter - Xcode project configuration CLI made easy.
twitter.com/merowing_
547 stars 35 forks source link

Is it possible to run a custom config file other than ~/.crafter.rb? #9

Closed wilmarvh closed 9 years ago

wilmarvh commented 10 years ago

I want to write a config file to be reused within a specific set of developers. How do I run the crafter command, along with that custom file?

Something like?

crafter ~/path/to/my/file.rb
krzysztofzablocki commented 10 years ago

right now you'd probably could add include in your ~/.crafter.rb and do some presenting before user specific configure block hits.

What you could try adding is extra param (see bin/crafter) that would store a specific configuration file path override in Crafter, then in https://github.com/krzysztofzablocki/crafter/blob/master/lib/crafter.rb#L111 you could just add a simple check if there is custom file and load that instead, need help with that? I'd be happy to merge PR for this :)