Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 733 Bytes


Warning: This is an experimental api. It is not a final design, and could be modified in the future.

Rules are a way to help prevent re-executing tasks unnecessarily. For example, not re-downloading a script if it has already been downloaded:

import os
import requests
from uranium import rule
from uranium.rules import WasChanged

def main(build):
    with open(.path.join(build.root, "config.json"), "w+") as fh:
        resp = requests.get("")

Full API Reference

.. autoclass:: uranium.rules.WasChanged