def run(self):
        print "*** Starting Driver Packaging Process ***"
        
        # store the original directory since we will be navigating away from it
        original_dir = os.getcwd()

        # first create a temporary clone of ooici to work with
        self.clone_repo()

        # for now comment out the test option until test are more stable,
        # just build the package driver
        if len(sys.argv) == 2 and (sys.argv[1] == "--repackage"):
            self.get_repackage_version()
            self.package_driver()
        else:
            self.update_version()
            self.make_branch()
            self.package_driver()

            if prompt.yes_no('Do you want to push the new release branch to ooici?'):
                cmd = 'git push'
                output = subprocess.check_output(cmd, shell=True)
                if len(output) > 0:
                    log.debug('git push returned: %s', output)

        # go back to the original directory
        os.chdir(original_dir)

        print "Package Created: " + self.archive_path()
 def confirm_metadata(self):
     """
     @brief Confirm the metadata entered is correct.  Run from the console
     @retval True if the user confirms otherwise False.
     """
     print ( "\nYou Have entered:\n " )
     self.display_metadata();
     return prompt.yes_no( "\nIs this metadata correct? (y/n)" )
Example #3
0
    def confirm_metadata(self):
        """
        @brief Confirm the metadata entered is correct.  Run from the console
        @retval True if the user confirms otherwise False.
        """
        if self.driver_name.find('/') != -1 or self.driver_name.find('\\') != -1 or self.driver_name.find('\0') != -1 or self.driver_name.find(' ') != -1:
            print ( "Driver names cannot contain '/', '\', space, or null chars" )
            return False

        print ( "\nYou Have entered:\n " )
        self.display_metadata();
        return prompt.yes_no( "\nIs this metadata correct? (y/n)" )
Example #4
0
    def confirm_metadata(self):
        """
        @brief Confirm the metadata entered is correct.  Run from the console
        @retval True if the user confirms otherwise False.
        """
        if self.driver_name.find('/') != -1 or self.driver_name.find(
                '\\') != -1 or self.driver_name.find(
                    '\0') != -1 or self.driver_name.find(' ') != -1:
            print("Driver names cannot contain '/', '\', space, or null chars")
            return False

        print("\nYou Have entered:\n ")
        self.display_metadata()
        return prompt.yes_no("\nIs this metadata correct? (y/n)")