Beispiel #1
0
 def init_helper(self):
     self.helper = Helper(self.config.get_config_path("helper"),
                          self.storage_broker, self._secret_holder,
                          self.stats_provider, self.history)
     # TODO: this is confusing. BASEDIR/private/helper.furl is created by
     # the helper. BASEDIR/helper.furl is consumed by the client who wants
     # to use the helper. I like having the filename be the same, since
     # that makes 'cp' work smoothly, but the difference between config
     # inputs and generated outputs is hard to see.
     helper_furlfile = self.config.get_private_path("helper.furl").encode(get_filesystem_encoding())
     self.tub.registerReference(self.helper, furlFile=helper_furlfile)
Beispiel #2
0
 def _publish(self):
     self.helper = Helper(os.path.join(self.basedir, "helper"),
                          self.storage_broker, self._secret_holder,
                          self.stats_provider, self.history)
     # TODO: this is confusing. BASEDIR/private/helper.furl is created
     # by the helper. BASEDIR/helper.furl is consumed by the client
     # who wants to use the helper. I like having the filename be the
     # same, since that makes 'cp' work smoothly, but the difference
     # between config inputs and generated outputs is hard to see.
     helper_furlfile = os.path.join(self.basedir,
                                    "private", "helper.furl").encode(get_filesystem_encoding())
     self.tub.registerReference(self.helper, furlFile=helper_furlfile)