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
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") |