python-fly

A python package to run concourse fly


License
MIT
Install
pip install python-fly==0.0.2

Documentation

Snakes on a plane

A python package to run concourse fly

Useage

from fly import Fly
fly = Fly(
    concourse_url='http://127.0.0.1:8080'
)
fly.get_fly()
fly.login(username='admin', password='admin', team_name='main')
fly.get_json('pipelines')
fly.run(
    'set-pipeline',
    '-p', 'concourse-build',
    '-c', '/path/to/resource/pipeline.yaml',
    '-v', 'app-name=app_name',
    '-v', 'github-org=github-org',
    '-v', 'github-repo=https://github.com/ministryofjustice/concourse-build',
    '-n'
)

Tests

python -m unittest tests.test_commands_run -v