Skip to content

Commit

Permalink
Log when create project.
Browse files Browse the repository at this point in the history
  • Loading branch information
hustlzp committed Oct 27, 2015
1 parent a2e08e4 commit 93d88a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_boost/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def generate_project(args):

if src != src_dir:
_mkdir_p(dst_dir)
logger.info("New: %s/" % dst_dir)

# Copy, rewrite and move project files
for filename in filenames:
Expand All @@ -87,10 +88,12 @@ def generate_project(args):
_rewrite_and_copy(src_file, dst_file, project_name)
else:
shutil.copy(src_file, dst_file)
logger.info("New: %s" % dst_file)

if filename in ['development_sample.py', 'production_sample.py']:
dst_file = os.path.join(dst_dir, "%s.py" % filename.split('_')[0])
_rewrite_and_copy(src_file, dst_file, project_name)
logger.info("New: %s" % dst_file)

logger.info('Finish generating project files.')

Expand Down

0 comments on commit 93d88a5

Please sign in to comment.