Beispiel #1
0
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
Beispiel #2
0
 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()
Beispiel #3
0
 def tearDown(self):
     shutil.rmtree(self.test_env_dir)
     clean_output()
Beispiel #4
0
 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()
Beispiel #5
0
 def tearDown(self):
     shutil.rmtree(self.test_env_dir)
     helpers.clean_output()