{% extends "moneta/base_package.html" %}{% load staticfiles i18n moneta %} {% block extrahead %} {% endblock %} {% block repo_content %}

{% trans 'Available gem indexes' %}

{% with view=repo|moneta_url:'simple' %}
{% for tab_info in tab_infos %}
{% trans 'Modifiy your $HOME/.gemrc:' %}
---
# gem: --no-rdoc --no-ri
# :verbose: true
# :backtrace: false
# :update_sources: true
:sources:
- {{ absolute_url }}{{ tab_info.0 }}{% if use_https %}
cert = {% trans '/Path/to/your/ROOT/CA.pem' %}{% endif %}
{% if upload_allowed %}

{% trans 'Add a package' %}

{% trans 'In order to add a new package, please run the following command:' %}
FILENAME=filename-version.gem
{% curl %} --data-binary @$FILENAME {{ absolute_url }}{% url 'moneta:add_element_post' rid=repo.id %}\?filename=$FILENAME{% for state in tab_info.1 %}\&states={{ state }}{% endfor %}
{% endif %} {% trans 'Run the following command to re-index packages after an upload:' %} {% with view=repo|auth_moneta_url:"force_index" %}
{% curl %} {{ absolute_url }}{% url view rid=repo.id repo_slug=repo.slug %}
{% endwith %}
{% endfor %}
{% endwith %} {% include 'moneta/add_signature.html' %} {% endblock %}