コード例 #1
0
ファイル: bootstrap.py プロジェクト: joshleejosh/tmplr
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
コード例 #2
0
ファイル: TestApplication.py プロジェクト: azavea/blend
 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()
コード例 #3
0
ファイル: TestConfiguration.py プロジェクト: jwalgran/blend
 def tearDown(self):
     shutil.rmtree(self.test_env_dir)
     clean_output()
コード例 #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()
コード例 #5
0
ファイル: TestResource.py プロジェクト: azavea/blend
 def tearDown(self):
     shutil.rmtree(self.test_env_dir)
     helpers.clean_output()