コード例 #1
0
 def class_name(cls, command):
     """
     creates the default filename in which the module is defined
     :param command:  the name of the command
     :return: cloudmesh.ext.command.<command>+command.<Command>
     """
     return "cloudmesh." + command + ".command." + command + "." \
            + command.capitalize() + "Command"
コード例 #2
0
    def name(cls, command):
        """
        creates a name for a modules starting with do_
        :param command: returns a tuple with the module location and tge do_function
        :return:
        """
        command_name = "do_" + command

        class_name = "cloudmesh." + command + ".command." + command + "." \
                     + command.capitalize() + "Command"

        return class_name, command_name