mkdir -p /tmp/apidoc
chown foreman:foreman /tmp/apidoc
foreman-rake apipie:static_swagger_json OUT=/tmp/apidoc
results in:
[root@sat]# ll /tmp/apidoc
total 27712
| <?xml version='1.0' encoding="UTF-8"?> | |
| <configuration xmlns="urn:activemq" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd"> | |
| <core xmlns="urn:activemq:core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="urn:activemq:core "> | |
| <acceptors> |
| <?xml version='1.0' encoding="UTF-8"?> | |
| <!-- | |
| Copyright (c) 2009 - 2018 Red Hat, Inc. | |
| This software is licensed to you under the GNU General Public License, | |
| version 2 (GPLv2). There is NO WARRANTY for this software, express or | |
| implied, including the implied warranties of MERCHANTABILITY or FITNESS | |
| FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 | |
| along with this software; if not, see | |
| http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. |
| ln -s `ls -d /tmp/systemd-private-*httpd*/tmp/passenger*` /tmp/ | |
| scl enable tfm-ror52 passenger-status |
mkdir -p /tmp/apidoc
chown foreman:foreman /tmp/apidoc
foreman-rake apipie:static_swagger_json OUT=/tmp/apidoc
results in:
[root@sat]# ll /tmp/apidoc
total 27712
| in the console: | |
| # find library environment of default org | |
| environment_id = Katello::ContentViewEnvironment.first.cp_id | |
| # create the consumer in the environment | |
| consumer = Katello::Resources::Candlepin::Consumer.create(environment_id, {name: "you-will-export-me", type: {"label": "candlepin"}}, []) | |
| # export the consumer's manifest to a .zip | |
| data = Katello::Resources::Candlepin::CandlepinResource.get("/candlepin/consumers/#{consumer['uuid']}/export") |