Project

General

Profile

« Previous | Next » 

Revision 099726dc

Added by Timo Goebel about 7 years ago

Updated ruby-puppetdb-foreman to 3.0.2

View differences:

plugins/ruby-puppetdb-foreman/debian/changelog
ruby-puppetdb-foreman (3.0.2-1) stable; urgency=low
* 3.0.2 released
-- Timo Goebel <mail@timogoebel.name> Wed, 27 Apr 2017 13:38:40 +0200
ruby-puppetdb-foreman (2.0.0-1) stable; urgency=low
* 2.0.0 released
plugins/ruby-puppetdb-foreman/debian/control
Section: ruby
Priority: extra
Maintainer: Daniel Lobato <dlobatog@redhat.com>
Build-Depends: debhelper (>= 8.0.0)
Build-Depends: debhelper (>= 8.0.0), foreman-sqlite3 (>= 1.11.0~rc1)
Standards-Version: 3.9.3
Homepage: https://github.com/theforeman/puppetdb_foreman
plugins/ruby-puppetdb-foreman/debian/gem.list
# list of gem urls to download via Jenkins, space separated
GEMS="https://rubygems.org/downloads/puppetdb_foreman-2.0.0.gem"
GEMS="https://rubygems.org/downloads/puppetdb_foreman-3.0.2.gem"
plugins/ruby-puppetdb-foreman/debian/install
puppetdb_foreman.rb usr/share/foreman/bundler.d
cache usr/share/foreman/vendor
apipie-cache/puppetdb_foreman var/lib/foreman/public/apipie-cache/plugin
plugins/ruby-puppetdb-foreman/debian/postinst
fi
fi
# DB migrate/seed after install
if [ -f /usr/share/foreman/config/database.yml ]; then
if [ ! -z "${DEBUG}" ]; then
/usr/sbin/foreman-rake apipie:cache:index || true
else
/usr/sbin/foreman-rake apipie:cache:index >> $LOGFILE 2>&1 || true
fi
fi
# Own all the core files
chown -Rf foreman:foreman '/usr/share/foreman'
plugins/ruby-puppetdb-foreman/debian/rules
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PLUGIN = puppetdb_foreman
build:
cp cache/* /usr/share/foreman/vendor/cache/
cp $(PLUGIN).rb /usr/share/foreman/bundler.d/
cd /usr/share/foreman && ( \
/usr/bin/foreman-ruby /usr/bin/bundle install --local && \
/usr/bin/foreman-ruby /usr/bin/bundle exec rake db:migrate RAILS_ENV=development && \
/usr/bin/foreman-ruby /usr/bin/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 $@
plugins/ruby-puppetdb-foreman/puppetdb_foreman.rb
gem 'puppetdb_foreman', '2.0.0'
gem 'puppetdb_foreman', '3.0.2'

Also available in: Unified diff