Revision afd03fb8
Added by Dominic Cleal almost 8 years ago
plugins/ruby-foreman-azure/debian/rules | ||
---|---|---|
cp cache/* /usr/share/foreman/vendor/cache/
|
||
cp $(PLUGIN).rb /usr/share/foreman/bundler.d/
|
||
cd /usr/share/foreman && ( \
|
||
bundle install --local && \
|
||
bundle exec rake plugin:assets:precompile[$(PLUGIN)] RAILS_ENV=production \
|
||
/usr/bin/foreman-ruby /usr/bin/bundle install --local && \
|
||
/usr/bin/foreman-ruby /usr/bin/bundle exec rake plugin:assets:precompile[$(PLUGIN)] RAILS_ENV=production \
|
||
)
|
||
GEM_PATH=$$(cd /usr/share/foreman && bundle show $(PLUGIN)) && \
|
||
GEM_PATH=$$(cd /usr/share/foreman && /usr/bin/foreman-ruby /usr/bin/bundle show $(PLUGIN)) && \
|
||
cp -rp $${GEM_PATH}/public/assets/$(PLUGIN) ./
|
||
|
||
%:
|
Also available in: Unified diff
Use foreman-ruby to run bundler in plugin build scripts
Fixes builds of plugins on OSes such as trusty where the default Ruby is
different to the foreman-ruby version, causing `foreman` installation
errors as gems are missing the correct `ruby-dev` package.