Skip to content

Commit

Permalink
Release/1.0.1 (#16)
Browse files Browse the repository at this point in the history
* Bumping Version number to 1.0.1

* Added a check wether docker is installed before initializing.
  • Loading branch information
winsmith authored Mar 14, 2017
1 parent 7c9bb3c commit c6c23bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions jonah/jonah.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,18 @@ def backspace(self, string_to_escape):

# User Actions #####################################################################################################


def check_docker(self):
"""Check that the Docker executable is available on the user's system"""
try:
docker_version_output = self.run('docker version', exceptions_should_bubble_up=True)
except (subprocess.CalledProcessError, OSError) as e:
self.printout('Error while calling "docker" executable. Is Docker installed on your system?')
exit(1)

def initialize(self):
"""Initialize a new jonah project in the current directory"""
self.check_docker()

if len(sys.argv) > 2 and sys.argv[2] != 'debug':
project_name = sys.argv[2]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.0.0',
version='1.0.1',

description='A way to pack your Django Development, Deployment and Testing into Docker',
long_description=long_description,
Expand Down

0 comments on commit c6c23bc

Please sign in to comment.