old_contents: import subprocess
  from clint.textui import puts, indent, colored
  
  from .base import DeweyCommand
  from dewey.util import suppress_stdout_stderr
  
  
  class Command(DeweyCommand):
  
      def pre_default(self, *args, **kwargs):
          return "boot2docker init && boot2docker start --vbox-share=disable"
          pass
  
      def run_command(self, *args, **kwargs):
          # # Base OSX Dev
          # output = subprocess.check_output("docker-osx-dev", shell=True, )
          running = subprocess.check_output("docker ps", shell=True)
  
          # Dev DNS
          if "ruudud/devdns" not in running:
              try:
                  output = subprocess.check_output("docker run -d --name devdns -p 53:53/udp -v /var/run/docker.sock:/var/run/docker.sock ruudud/devdns --restart always", shell=True, )
              except:
                  output = subprocess.check_output("docker run ruudud/devdns -d -p 53:53/udp -v /var/run/docker.sock:/var/run/docker.sock --restart always", shell=True, )
  
          if "docker-cleanup" not in running:
              # Old image cleanup
              try:
                  output = subprocess.check_output("docker run -d --name cleanup --restart always -v /var/run/docker.sock:/var/run/docker.sock:rw -v /var/lib/docker:/var/lib/docker:rw meltwater/docker-cleanup:latest ", shell=True, )
              except:
                  output = subprocess.check_output("docker run meltwater/docker-cleanup:latest -d --restart always -v /var/run/docker.sock:/var/run/docker.sock:rw -v /var/lib/docker:/var/lib/docker:rw", shell=True, )        
  
          # Get the latest boot2docker
          # output = subprocess.check_call("docker-machine upgrade default", shell=True, )
  
          print("Ready for development")
  
      def post_default(self, *args, **kwargs):
          return "docker-osx-dev -e .git -e bower_components -e node_modules -e source -e *.pyc -e app/frontends/app/dist -e app/frontends/marketing/dist"
  
new_contents: import subprocess
  from clint.textui import puts, indent, colored
  
  from .base import DeweyCommand
  from dewey.util import suppress_stdout_stderr
  
  
  class Command(DeweyCommand):
  
      def pre_default(self, *args, **kwargs):
          return "boot2docker init && boot2docker start --vbox-share=disable"
          pass
  
      def run_command(self, *args, **kwargs):
          # # Base OSX Dev
          # output = subprocess.check_output("docker-osx-dev", shell=True, )
          running = subprocess.check_output("docker ps", shell=True)
  
          # Dev DNS
          if "ruudud/devdns" not in running:
              try:
                  output = subprocess.check_output("docker run -d --name devdns -p 53:53/udp -v /var/run/docker.sock:/var/run/docker.sock ruudud/devdns --restart always", shell=True, )
              except:
                  output = subprocess.check_output("docker run ruudud/devdns -d -p 53:53/udp -v /var/run/docker.sock:/var/run/docker.sock --restart always", shell=True, )
  
          if "docker-cleanup" not in running:
              # Old image cleanup
              try:
                  output = subprocess.check_output("docker run -d --name cleanup --restart always -v /var/run/docker.sock:/var/run/docker.sock:rw -v /var/lib/docker:/var/lib/docker:rw meltwater/docker-cleanup:latest ", shell=True, )
              except:
                  output = subprocess.check_output("docker run meltwater/docker-cleanup:latest -d --restart always -v /var/run/docker.sock:/var/run/docker.sock:rw -v /var/lib/docker:/var/lib/docker:rw", shell=True, )        
  
          # Get the latest boot2docker
          # output = subprocess.check_call("docker-machine upgrade default", shell=True, )
  
          print("Ready for development")
  
      def post_default(self, *args, **kwargs):
          return "docker-osx-dev -e .git -e bower_components -e node_modules -e source -e *.pyc -e app/frontends/app/dist -e app/frontends/app/build -e app/frontends/marketing/dist -e app/frontends/marketing/build"
  
subject: Exclude build as well.