Skip to content

Commit

Permalink
Merge pull request #81 from jvanderaa/release121
Browse files Browse the repository at this point in the history
Release 1.2.1
  • Loading branch information
jvanderaa committed Oct 4, 2022
2 parents 8e7cc4f + af38a6d commit a939834
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
## v1.2.1

- (#76) Feature: Removing the restriction on `id` for filter

It is now allowed to filter per id. (switch = devices.get(id="..."))
> It is now allowed to filter per id. (switch = devices.get(id="..."))
- (#81) Development: Added two invoke tasks:
- `debug` to get the logs for Nautobot to the screen
- `stop` to execute `docker-compose down` for started containers

## v1.2.0

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[tool.poetry]
name = "pynautobot"
version = "1.2.0"
version = "1.2.1"
description = "Nautobot API client library"
authors = ["Network to Code, LLC <opensource@networktocode.com>"]
readme = "README.md"
Expand Down
12 changes: 12 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,21 @@ def is_truthy(arg):

@task
def start(context):
print("Starting Nautobot in detached mode...")
return context.run("docker-compose -f development/docker-compose.yml up -d")


@task
def stop(context):
return context.run("docker-compose -f development/docker-compose.yml down")


@task
def debug(context):
print("Starting Nautobot in debug mode...")
return context.run("docker-compose -f development/docker-compose.yml up")


def run_cmd(context, exec_cmd, local=INVOKE_LOCAL):
"""Wrapper to run the invoke task commands.
Expand Down

0 comments on commit a939834

Please sign in to comment.