git - How can I configure $source_dir to match /Users/${user}/src/${github-owner}/${project}? -
i'm new boxen , i'm trying create project manifest points correct path given project. organize source code in /users/${user}/src/${github-owner}/${repo} matches github urls.
is there way boxen?
for example, here's configuration basic static site:
class projects::blog { boxen::project { 'blog': server_name => 'faun.dev', source => 'faun/blog', ruby => '2.0.0-p353', nginx => "projects/shared/nginx.middleman.conf.erb" } } when run boxen, places source code in /users/faun/src/blog, should go in /users/faun/src/faun/blog. ideally, i'd projects work way, since projects live under owner directory.
i've tried modifying $source_dir, if override it, must provide fully-qualified path. there way replace $source_dir version of ${boxen::config::srcdir}/${github-owner}/${name} globally?
when consider boxen manifest one, see can define configuration setup, like:
# configuration setup $env = { directories => { home => '/users/jamison', dotfiles => '/users/jamison/.dotfiles' }, } why not add github-owner in there:
github-owner => 'faun', and use $env['github-owner'] in source-dir override (similar l166-l175).
Comments
Post a Comment