Ejemplo n.º 1
0
 def write(self, data):
     try:
         file_util.overwite(self.get_ouput_file(), self.get_output(data))
     except IOError:
         self.handle_step_error(
             "Unable to write npm build information to file '{}'".format(
                 self.get_ouput_file()))
    def write(self, data):
        try:
            file_util.overwite(self.get_ouput_file(), self.get_output(data))

        except IOError:
            self.handle_step_error(
                "*{}* Unable to write build information to file '{}'".format(
                    image_version_util.get_image(data), self.get_ouput_file()))
 def write(self, data):
     try:
         self.log.info(
             f'Build information written {self.get_ouput_file()}, which will be included in published package.'
         )
         file_util.overwite(self.get_ouput_file(), self.get_output(data))
     except IOError:
         self.handle_step_error(
             "Unable to write npm build information to file '{}'".format(
                 self.get_ouput_file()))
Ejemplo n.º 4
0
 def write_updated_package_json(self, data):
     file_util.overwite('/package.json',
                        json.dumps(data[pipeline_data.PACKAGE_JSON]))
     self.log.info(
         'Wrote updated package.json to disc, ready for npm publish.')