Exemple #1
0
  def generate_structure(self):
    path = self.params.path

    if path[0] != "/":
      path = os.path.abspath(os.getcwd() + "/" + self.params.path)

    name = path.split("/")[-1]

    if os.path.exists(path):
      raise AttributeError("Path %s is already present." % path)

    CommandFactory.get(command="GenerateStructure").run(name, path)
Exemple #2
0
    def generate_structure(self):
        path = self.params.path

        if path[0] != "/":
            path = os.path.abspath(os.getcwd() + "/" + self.params.path)

        name = path.split("/")[-1]

        if os.path.exists(path):
            raise AttributeError("Path %s is already present." % path)

        CommandFactory.get(command="GenerateStructure").run(name, path)
Exemple #3
0
 def run_command(self):
   command = CommandFactory.get(command=self.params.command,
                                command_type=self.params.command_type)
   command.run(self.params)
Exemple #4
0
 def run_command(self):
     command = CommandFactory.get(command=self.params.command,
                                  command_type=self.params.command_type)
     command.run(self.params)