old_contents: # -*- coding: utf-8 -*-
  '''Management commands.'''
  
  import os
  import shutil
  
  from flask.ext.script import Manager
  from killtheyak.main import app, freezer
  
  manager = Manager(app)
  build_dir = app.config['FREEZER_DESTINATION']
  
  HERE = os.path.dirname(os.path.abspath(__file__))
  
  @manager.command
  def install():
      '''Installs all required packages.'''
      os.system('pip install -U -r requirements.txt')
  
  
  @manager.command
  def coffee(watch=False):
      '''Compiles Coffeescript files.
  
      To do a one-time compile, run:
          >> ./manage.py coffee
  
      Enters watch mode when you run:
          >> ./manage.py coffee -w
      '''
      javascript_dir = app.config['JAVASCRIPT_DIR']
      coffee_dir = app.config['COFFEE_DIR']
      base_command = 'coffee -o {} '.format(javascript_dir)
      coffee_files = "{}/*.coffee".format(coffee_dir)
      if watch:
          print("Watching .coffee files in {} to {}"
                          .format(coffee_dir, javascript_dir))
          command = base_command + '-cw ' + coffee_files
      else:
          print("Compiling .coffee files in {} and compiling them to {}"
                          .format(coffee_dir, javascript_dir))
          command = base_command + '-c ' + coffee_files
      os.system(command)
  
  
  @manager.command
  def build():
      """Builds the static files."""
      coffee()  # Compile coffeescript
      print("Freezing it up! Brr...")
      freezer.freeze()  # Freezes the project to build/
      print('Copying CNAME...')
      cname = os.path.join(HERE, 'CNAME')
      shutil.copyfile(cname, os.path.join(build_dir, 'CNAME'))
      print('...done')
  
  
  @manager.command
  def deploy(push=True):
      '''Deploys the site to GitHub Pages.'''
      build()
      print('Deploying to GitHub pages...')
      command = 'ghp-import -b master '
      if push:
          command += '-p '
      command += build_dir
      os.system(command)
      print('...done')
  
  @manager.command
  def test(unit=True, webtest=True):
      """Runs the tests.
      """
      command = 'nosetests killtheyak/test/ --verbosity=2'
      if not unit:
          command += ' --exclude="unit_tests'
      if not webtest:
          command += ' --exclude="webtest_tests"'
      os.system(command)
  
  
  if __name__ == '__main__':
      manager.run()
  
new_contents: # -*- coding: utf-8 -*-
  '''Management commands.'''
  
  import os
  import shutil
  
  from flask.ext.script import Manager
  from killtheyak.main import app, freezer
  
  manager = Manager(app)
  build_dir = app.config['FREEZER_DESTINATION']
  
  HERE = os.path.dirname(os.path.abspath(__file__))
  
  @manager.command
  def install():
      '''Installs all required packages.'''
      os.system('pip install -U -r requirements.txt')
  
  
  @manager.command
  def coffee(watch=False):
      '''Compiles Coffeescript files.
  
      To do a one-time compile, run:
          >> ./manage.py coffee
  
      Enters watch mode when you run:
          >> ./manage.py coffee -w
      '''
      javascript_dir = app.config['JAVASCRIPT_DIR']
      coffee_dir = app.config['COFFEE_DIR']
      base_command = 'coffee -o {} '.format(javascript_dir)
      coffee_files = "{}/*.coffee".format(coffee_dir)
      if watch:
          print("Watching .coffee files in {} to {}"
                          .format(coffee_dir, javascript_dir))
          command = base_command + '-cw ' + coffee_files
      else:
          print("Compiling .coffee files in {} and compiling them to {}"
                          .format(coffee_dir, javascript_dir))
          command = base_command + '-c ' + coffee_files
      os.system(command)
  
  
  @manager.command
  def build():
      """Builds the static files."""
      coffee()  # Compile coffeescript
      print("Freezing it up! Brr...")
      freezer.freeze()  # Freezes the project to build/
      print('Copying CNAME...')
      cname = os.path.join(HERE, 'CNAME')
      shutil.copyfile(cname, os.path.join(build_dir, 'CNAME'))
      print('...done')
  
  
  @manager.command
  def deploy(push=True):
      '''Deploys the site to GitHub Pages.'''
      build()
      print('Deploying to GitHub pages...')
      command = 'ghp-import -b master -m "[deploy] Build" '
      if push:
          command += '-p '
      command += build_dir
      os.system(command)
      print('...done')
  
  @manager.command
  def test(unit=True, webtest=True):
      """Runs the tests.
      """
      command = 'nosetests killtheyak/test/ --verbosity=2'
      if not unit:
          command += ' --exclude="unit_tests'
      if not webtest:
          command += ' --exclude="webtest_tests"'
      os.system(command)
  
  
  if __name__ == '__main__':
      manager.run()
  
subject: Use different commit message