def init_app(self, app): '''initialize an app, meaning adding the metadata folder, bin, and lib to it. The app is created at the base ''' settings = self.get_appenv_lookup(app)[app] # Create base directories for metadata for folder in ['appmeta', 'appbin', 'applib', 'appdata']: mkdir_p(settings[folder]) return settings
def install_base(self): ''' create basic scif structure at the base for apps and metadata Parameters ========== base: the full path to the root folder to create /scif ''' if not hasattr(self, '_base'): bot.exit('Please set the base before installing to it.') bot.info('Installing base at %s' % self._base) mkdir_p(self.path_apps) mkdir_p(self.path_data)
def install_base(self): """ create basic scif structure at the base for apps and metadata Parameters ========== base: the full path to the root folder to create /scif """ if not hasattr(self, "_base"): bot.exit("Please set the base before installing to it.") bot.info("Installing base at %s" % self._base) mkdir_p(self.path_apps) mkdir_p(self.path_data)