Skip to content

Commit

Permalink
Add composer global bin to $path
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Lind committed Jul 1, 2015
1 parent 14f8291 commit 16e992d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions files/composer_global_bin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Add composer global bin to $PATH

if [ "$COMPOSER_HOME" ]; then
export PATH=$COMPOSER_HOME/vendor/bin:$PATH
else
export PATH=~/.composer/vendor/bin:$PATH
fi
6 changes: 6 additions & 0 deletions manifests/composer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,10 @@
file { $composer_path:
mode => '0755'
}

# Add composer global bin to $PATH
boxen::env_script { 'composer':
source => 'puppet:///modules/php/composer_global_bin.sh',
require => Exec['download-php-composer']
}
}

0 comments on commit 16e992d

Please sign in to comment.