mirror of
https://github.com/kennethreitz/bob-builder.git
synced 2026-06-05 23:20:17 +00:00
36 lines
821 B
Python
36 lines
821 B
Python
"""bob-builder: builds things.
|
|
|
|
Usage:
|
|
bob-builder <code_path> <image-name> [--buildpack=<buildpack-url>] [--push] [--username=<username> --password=<password>] [--allow-insecure]
|
|
|
|
"""
|
|
|
|
from docopt import docopt
|
|
|
|
from .builds import Build
|
|
|
|
|
|
def main():
|
|
args = docopt(__doc__)
|
|
image_name = args["<image-name>"]
|
|
codepath = args["<code_path>"]
|
|
trigger_push = args["--push"]
|
|
buildpack = args["--buildpack"]
|
|
(username, password) = (args["--username"], args["--password"])
|
|
|
|
allow_insecure = args["--allow-insecure"]
|
|
|
|
build = Build(
|
|
image_name=image_name,
|
|
codepath=codepath,
|
|
buildpack=buildpack,
|
|
username=username,
|
|
password=password,
|
|
allow_insecure=allow_insecure,
|
|
trigger_push=trigger_push,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|