old_contents: from subprocess import check_call
  
  from blackbelt.handle_github import get_current_branch
  from blackbelt.messages import post_message
  
  
  def deploy_staging():
      branch_name = get_current_branch()
  
      post_message("@here Deploying branch %s to staging" % branch_name, "#deploy-queue")
  
      check_call(['grunt', 'deploy', '--app=apiary-staging', '--force', "--branch=%s" % branch_name])
  
  def deploy_production():
      post_message("@here Deploying to production" % branch_name, "#deploy-queue")
  
      check_call(['grunt', 'deploy'])
  
new_contents: from subprocess import check_call
  
  from blackbelt.handle_github import get_current_branch
  from blackbelt.messages import post_message
  
  
  def deploy_staging():
      branch_name = get_current_branch()
  
      post_message("@here Deploying branch %s to staging" % branch_name, "#deploy-queue")
  
      check_call(['grunt', 'deploy', '--app=apiary-staging', '--force', "--branch=%s" % branch_name])
  
  def deploy_production():
      post_message("@here Deploying to production", "#deploy-queue")
  
      check_call(['grunt', 'deploy'])
  
subject: remove branch_name from production