Skip to content

Commit

Permalink
Merge branch 'release/v1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-napoleone committed Mar 18, 2019
2 parents f5bb359 + 97a31ab commit e1c04bb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion create_tomochain_masternode/__init__.py
@@ -1 +1 @@
__version__ = '1.1.1'
__version__ = '1.2.0'
6 changes: 5 additions & 1 deletion create_tomochain_masternode/main.py
Expand Up @@ -104,8 +104,12 @@ def ask() -> Dict[str, str]:
exists=True,
file_okay=False,
resolve_path=True,
) if answers["storage"] == 'host directory' else click.STRING
) if answers['storage'] == 'host directory' else click.STRING
)
if answers['storage'] == 'docker volume':
answers['external'] = str(click.confirm(
f'{bullet} The volume already exists',
))
answers['expose_rpc'] = click.confirm(
f'{bullet} Expose RPC',
)
Expand Down
9 changes: 5 additions & 4 deletions create_tomochain_masternode/templates/compose.py
Expand Up @@ -25,10 +25,11 @@
- 8546:8546
{%- endif %}
restart: always
{% if storage == "docker volume" -%}
{% if storage == "docker volume" %}
volumes:
{{ data }}:
{%- endif %}
{%- if external == "True" %}
external: true
{%- endif %}
{% endif %}
"""
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "create-tomochain-masternode"
version = "1.1.1"
version = "1.2.0"
description = "Set up a TomoChain masternode by running one command."
readme = "README.md"
license = "GPL-3.0+"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_create_tomochain_masternode.py
Expand Up @@ -14,7 +14,7 @@ def runner():


def test_version():
assert __version__ == '1.1.1'
assert __version__ == '1.2.0'


def test_produced_yml(runner):
Expand Down

0 comments on commit e1c04bb

Please sign in to comment.