Ejemplo n.º 1
0
 def execute(self):
     log.info('Removing "%s"... ', self.name)
     yield self.storage.remove('profiles', self.name)
     log.info('OK')
Ejemplo n.º 2
0
 def execute(self):
     log.info('Uploading "%s"... ', self.name)
     yield self.storage.remove('profiles', self.name)
     log.info('OK')
Ejemplo n.º 3
0
 def execute(self):
     log.info('Rename "%s" to "%s"', self.name, self.copyname)
     oldprofile = yield View(self.storage, self.name).execute()
     yield Create(self.storage, self.copyname, oldprofile).execute()
Ejemplo n.º 4
0
 def execute(self):
     log.info('Uploading "%s"... ', self.name)
     profile = CocaineConfigReader.load(self.profile)
     yield self.storage.write('profiles', self.name, profile, PROFILES_TAGS)
     log.info('OK')
Ejemplo n.º 5
0
 def execute(self):
     log.info('Removing "%s"... ', self.name)
     channel = yield self.storage.remove('profiles', self.name)
     yield channel.rx.get()
     log.info('OK')