def run(command): entry.setup() template.setup() if command == 'CLEAN': print 'Clean stray files out of output dir %s'%consts.OUTDIR helpers.clean_output() elif command == 'NEW': #print 'Create a new entry in note dir %s'%consts.INDIR entry.new_entry() elif command == 'BUILD': outputter.regenerate() helpers.copy_assets() else: print 'Invalid command [%s]'%arg
def tearDown(self): shutil.rmtree(self.test_env_dir) if os.path.exists(self.default_config_file_path): shutil.rmtree(os.path.dirname(self.default_config_file_path)) clean_output()
def tearDown(self): shutil.rmtree(self.test_env_dir) clean_output()
def tearDown(self): shutil.rmtree(self.test_env_dir) helpers.clean_output()