Revision 8b4bc1ff
Added by Dominic Cleal about 9 years ago
plugins/ruby-foreman-salt/debian/rules | ||
---|---|---|
# Uncomment this to turn on verbose mode.
|
||
#export DH_VERBOSE=1
|
||
|
||
PLUGIN = foreman_salt
|
||
|
||
build:
|
||
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 db:migrate RAILS_ENV=development && \
|
||
bundle exec rake plugin:apipie:cache[$(PLUGIN)] cache_part=resources \
|
||
OUT=/var/lib/foreman/public/apipie-cache/plugin/$(PLUGIN) RAILS_ENV=development \
|
||
)
|
||
[ -e apipie-cache ] || mkdir apipie-cache/
|
||
cp -rp /var/lib/foreman/public/apipie-cache/plugin/$(PLUGIN) ./apipie-cache/
|
||
|
||
%:
|
||
dh $@
|
Also available in: Unified diff
Generate plugin API docs at build time