test_class.file: tf-build-tools/tf-cmd-api/src/test/java/com/deliveredtechnologies/terraform/TerraformCommandLineDecoratorTest.java
test_class.identifier: TerraformCommandLineDecoratorTest
test_case.body: @Ignore("not yet ready , Please ignore.")
    @Test
    public void terraformCommandLineDecoratorDoesntBlowUpWithoutLogging() throws IOException, InterruptedException {
  
      Path tfPath = Paths.get(".tf");
      File fetchFile = new File(String.format("..%stf-maven-plugin%ssrc%smain%sresources%stf",File.separator,File.separator,File.separator,File.separator,File.separator));
      File tfDir = tfPath.toFile();
      String[] tfwFileNames = {"tfw", "tfw.cmd", "tfw.ps1", "terraform-maven.properties"};
      if (!tfDir.exists()) {
        try {
          tfDir.mkdir();
        } catch (Exception e) {
          System.out.printf("Unable to create .tf directory\n");
        }
      }
      for (String tfwFileName : tfwFileNames) {
        String tfwFile = (fetchFile.toPath().toFile() + File.separator +  tfwFileName);
        String tfwFileDestName = (".tf" + File.separator +  tfwFileName);
        File tfwFileSource = new File(tfwFile);
        File tfwFileDest = new File(tfwFileDestName);
        if (!tfwFileDest.exists()) {
          Files.copy(tfwFileSource.toPath(), tfwFileDest.toPath());
          tfwFileDest.setExecutable(true,false);
        }
      }
  
      TerraformCommandLineDecorator terraformCommandLineDecorator = new TerraformCommandLineDecorator(TerraformCommand.VERSION);
      terraformCommandLineDecorator.execute("init");
      String[]entries = tfDir.list();
      for (String s: entries) {
        File currentFile = new File(tfDir.getPath(), s);
        currentFile.delete();
      }
      tfDir.delete();
    }
test_case.class_method_signature: TerraformCommandLineDecoratorTest.terraformCommandLineDecoratorDoesntBlowUpWithoutLogging()
test_case.full_signature: @Ignore("not yet ready , Please ignore.") @Test public void terraformCommandLineDecoratorDoesntBlowUpWithoutLogging()
test_case.identifier: terraformCommandLineDecoratorDoesntBlowUpWithoutLogging
test_case.invocations: get format toFile exists mkdir printf toFile toPath exists copy toPath toPath setExecutable execute list getPath delete delete
test_case.modifiers: @Ignore("not yet ready , Please ignore.") @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void terraformCommandLineDecoratorDoesntBlowUpWithoutLogging()
focal_class.declarator: commandLine
focal_class.modifier: private
focal_class.original_string: private Executable commandLine;
focal_class.type: Executable
focal_class.var_name: commandLine
focal_class.declarator: cmd
focal_class.modifier: private
focal_class.original_string: private TerraformCommand cmd;
focal_class.type: TerraformCommand
focal_class.var_name: cmd
focal_class.declarator: logger = Optional.empty()
focal_class.modifier: private
focal_class.original_string: private Optional<Logger> logger = Optional.empty();
focal_class.type: Optional<Logger>
focal_class.var_name: logger
focal_class.file: tf-build-tools/tf-cmd-api/src/main/java/com/deliveredtechnologies/terraform/TerraformCommandLineDecorator.java
focal_class.identifier: TerraformCommandLineDecorator
focal_class.interfaces: implements Executable
focal_class.class_method_signature: TerraformCommandLineDecorator.TerraformCommandLineDecorator(TerraformCommand cmd, Executable commandLine, Logger logger)
focal_class.full_signature: public  TerraformCommandLineDecorator(TerraformCommand cmd, Executable commandLine, Logger logger)
focal_class.identifier: TerraformCommandLineDecorator
focal_class.modifiers: public
focal_class.parameters: (TerraformCommand cmd, Executable commandLine, Logger logger)
focal_class.signature:  TerraformCommandLineDecorator(TerraformCommand cmd, Executable commandLine, Logger logger)
focal_class.class_method_signature: TerraformCommandLineDecorator.TerraformCommandLineDecorator(TerraformCommand cmd, Executable commandLine)
focal_class.full_signature: public  TerraformCommandLineDecorator(TerraformCommand cmd, Executable commandLine)
focal_class.identifier: TerraformCommandLineDecorator
focal_class.modifiers: public
focal_class.parameters: (TerraformCommand cmd, Executable commandLine)
focal_class.signature:  TerraformCommandLineDecorator(TerraformCommand cmd, Executable commandLine)
focal_class.class_method_signature: TerraformCommandLineDecorator.TerraformCommandLineDecorator(TerraformCommand cmd, Logger logger)
focal_class.full_signature: public  TerraformCommandLineDecorator(TerraformCommand cmd, Logger logger)
focal_class.identifier: TerraformCommandLineDecorator
focal_class.modifiers: public
focal_class.parameters: (TerraformCommand cmd, Logger logger)
focal_class.signature:  TerraformCommandLineDecorator(TerraformCommand cmd, Logger logger)
focal_class.class_method_signature: TerraformCommandLineDecorator.TerraformCommandLineDecorator(TerraformCommand cmd)
focal_class.full_signature: public  TerraformCommandLineDecorator(TerraformCommand cmd)
focal_class.identifier: TerraformCommandLineDecorator
focal_class.modifiers: public
focal_class.parameters: (TerraformCommand cmd)
focal_class.signature:  TerraformCommandLineDecorator(TerraformCommand cmd)
focal_class.class_method_signature: TerraformCommandLineDecorator.TerraformCommandLineDecorator(TerraformCommand cmd, String tfRootDir)
focal_class.full_signature: public  TerraformCommandLineDecorator(TerraformCommand cmd, String tfRootDir)
focal_class.identifier: TerraformCommandLineDecorator
focal_class.modifiers: public
focal_class.parameters: (TerraformCommand cmd, String tfRootDir)
focal_class.signature:  TerraformCommandLineDecorator(TerraformCommand cmd, String tfRootDir)
focal_class.class_method_signature: TerraformCommandLineDecorator.execute(String command, int timeout)
focal_class.full_signature: @Override public String execute(String command, int timeout)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (String command, int timeout)
focal_class.return: String
focal_class.signature: String execute(String command, int timeout)
focal_class.class_method_signature: TerraformCommandLineDecorator.execute(String command)
focal_class.full_signature: @Override public String execute(String command)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (String command)
focal_class.return: String
focal_class.signature: String execute(String command)
focal_class.class_method_signature: TerraformCommandLineDecorator.setLogger(Logger logger)
focal_class.full_signature: @Override public void setLogger(Logger logger)
focal_class.identifier: setLogger
focal_class.modifiers: @Override public
focal_class.parameters: (Logger logger)
focal_class.return: void
focal_class.signature: void setLogger(Logger logger)
focal_class.class_method_signature: TerraformCommandLineDecorator.getCommandLine()
focal_class.full_signature: public Executable getCommandLine()
focal_class.identifier: getCommandLine
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Executable
focal_class.signature: Executable getCommandLine()
focal_class.class_method_signature: TerraformCommandLineDecorator.getTerraformCommand(String command)
focal_class.full_signature: private String getTerraformCommand(String command)
focal_class.identifier: getTerraformCommand
focal_class.modifiers: private
focal_class.parameters: (String command)
focal_class.return: String
focal_class.signature: String getTerraformCommand(String command)
focal_class.class_method_signature: TerraformCommandLineDecorator.getTFExecutable()
focal_class.full_signature: private String getTFExecutable()
focal_class.identifier: getTFExecutable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTFExecutable()
focal_method.body: @Override
    public String execute(String command, int timeout) throws IOException, InterruptedException {
      return commandLine.execute(getTerraformCommand(command), timeout);
    }
focal_method.class_method_signature: TerraformCommandLineDecorator.execute(String command, int timeout)
focal_method.full_signature: @Override public String execute(String command, int timeout)
focal_method.identifier: execute
focal_method.invocations: execute getTerraformCommand
focal_method.modifiers: @Override public
focal_method.parameters: (String command, int timeout)
focal_method.return: String
focal_method.signature: String execute(String command, int timeout)