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"
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